Class UnixCrypt

Description

Encrypts and verifies data using the standard Unix DES-based encryption algorithm

Located in /core/security/UnixCrypt.class.php (line 37)

PHP2Go
   |
   --UnixCrypt
Method Summary
static string encrypt (string $data, [string $salt = NULL])
static bool verify (string $encrypted, string $data)
Methods
static method encrypt (line 48)

Encrypts a given value

static string encrypt (string $data, [string $salt = NULL])
  • string $data: Data to encrypt
  • string $salt: Encoding salt
static method verify (line 65)

Verifies data against its encrypted value

  1.  $encrypted UnixCrypt::encrypt('secret');
  2.  $bool UnixCrypt::verify($encrypted'secret');

static bool verify (string $encrypted, string $data)
  • string $encrypted: Encrypted value
  • string $data: Decrypted value

Inherited Methods

Inherited From PHP2Go

PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()

Documentation generated on Sun, 07 Oct 2007 19:30:51 -0300 by phpDocumentor 1.3.2