Class jCrypt

Description

Static methods help to encrypt and decrypt string. mCrypt is used if it is installed, else a basic algorithm is used.

Located in /utils/jCrypt.class.php (line 18)


	
			
Method Summary
static string decrypt (string $string, string $key)
static string encrypt (string $string, string $key)
static string mcryptDecrypt (string $string, string $key)
static string mcryptEncrypt (string $string, string $key)
static string simpleCrypt (string $str, string $key)
Methods
static decrypt (line 26)

Decrypt a string with a specific key

  • return: decrypted string
  • access: public
static string decrypt (string $string, string $key)
  • string $string: the string to decrypt
  • string $key: the key used to decrypt
static encrypt (line 43)

Encrypt a string with a specific key

  • return: encrypted string
  • access: public
static string encrypt (string $string, string $key)
  • string $string: the string to encrypt
  • string $key: the key used to encrypt
static mcryptDecrypt (line 80)

Decrypt a string with mCrypt.

  • return: decrypted string
  • access: protected
static string mcryptDecrypt (string $string, string $key)
  • string $string: the string to decrypt
  • string $key: the key used to decrypt string
static mcryptEncrypt (line 59)

Encrypt a string with mCrypt.

  • return: encrypted string
  • access: protected
static string mcryptEncrypt (string $string, string $key)
  • string $string: the string to encrypt
  • string $key: the key used to encrypt string
static simpleCrypt (line 101)

Basic encrypt/decrypt algorithm.

static string simpleCrypt (string $str, string $key)
  • string $str: the string to encrypt/decrypt
  • string $key: the key used to encrypt/decrypt string (must be >= 8 characters)

Documentation generated on Thu, 22 Mar 2012 22:14:33 +0100 by phpDocumentor 1.4.3