Class JCryptCipherSimple

Description

Implements interfaces:

JCrypt cipher for Simple encryption, decryption and key generation.

  • since: 12.1

Located in /libraries/joomla/crypt/cipher/simple.php (line 19)


	
			
Method Summary
string decrypt (string $data, JCryptKey $key)
string encrypt (string $data, JCryptKey $key)
JCryptKey generateKey ([array $options = array()])
string _getRandomKey ([integer $length = 256])
integer _hexToInt (string $s, integer $i)
array _hexToIntArray (string $hex)
string _intToHex (integer $i)
Methods
decrypt (line 32)

Method to decrypt a data string.

  • return: The decrypted data string.
  • since: 12.1
  • throws: InvalidArgumentException
  • access: public
string decrypt (string $data, JCryptKey $key)
  • string $data: The encrypted string to decrypt.
  • JCryptKey $key: The key[/pair] object to use for decryption.

Implementation of:
JCryptCipher::decrypt()
Method to decrypt a data string.
encrypt (line 74)

Method to encrypt a data string.

  • return: The encrypted data string.
  • since: 12.1
  • throws: InvalidArgumentException
  • access: public
string encrypt (string $data, JCryptKey $key)
  • string $data: The data string to encrypt.
  • JCryptKey $key: The key[/pair] object to use for encryption.

Implementation of:
JCryptCipher::encrypt()
Method to encrypt a data string.
generateKey (line 114)

Method to generate a new encryption key[/pair] object.

  • since: 12.1
  • access: public
JCryptKey generateKey ([array $options = array()])
  • array $options: Key generation options.

Implementation of:
JCryptCipher::generateKey()
Method to generate a new encryption key[/pair] object.
_getRandomKey (line 135)

Method to generate a random key of a given length.

  • since: 12.1
  • access: private
string _getRandomKey ([integer $length = 256])
  • integer $length: The length of the key to generate.
_hexToInt (line 161)

Convert hex to an integer

  • since: 11.1
  • access: private
integer _hexToInt (string $s, integer $i)
  • string $s: The hex string to convert.
  • integer $i: The offset?
_hexToIntArray (line 242)

Convert hex to an array of integers

  • return: An array of integers.
  • since: 11.1
  • access: private
array _hexToIntArray (string $hex)
  • string $hex: The hex string to convert to an integer array.
_intToHex (line 266)

Convert an integer to a hexadecimal string.

  • since: 11.1
  • access: private
string _intToHex (integer $i)
  • integer $i: An integer value to convert to a hex string.

Documentation generated on Mon, 25 Jun 2012 13:59:30 -0500 by phpDocumentor 1.4.4