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 19)


	
			
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 29)

Decrypt a string with a specific key.

Use mCrypt if it is installed, else a basic algorithm.

  • 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. If not given, use the key indicated in the configuration
static encrypt (line 48)

Encrypt a string with a specific key

Use mCrypt if it is installed, else a basic algorithm.

  • 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. If not given, use the key indicated in the configuration
static mcryptDecrypt (line 87)

Decrypt a string with mCrypt.

  • return: decrypted string
  • access: public
static string mcryptDecrypt (string $string, [string $key = ''])
  • string $string: the string to decrypt
  • string $key: the key used to decrypt string. If not given, use the key indicated in the configuration
static mcryptEncrypt (line 65)

Encrypt a string with mCrypt.

  • return: encrypted string
  • access: public
static string mcryptEncrypt (string $string, [string $key = ''])
  • string $string: the string to encrypt
  • string $key: the key used to encrypt string. If not given, use the key indicated in the configuration
static simpleCrypt (line 109)

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). If not given, use the key indicated in the configuration

Documentation generated on Wed, 24 Sep 2014 21:57:06 +0200 by phpDocumentor 1.4.3