Method to decrypt a data string.
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.
Method to encrypt a data string.
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.
Method to generate a new encryption key[/pair] object.
JCryptKey
generateKey
([
array $options =
array()])
-
array
$options: Key generation options.
Implementation of:
- JCryptCipher::generateKey()
- Method to generate a new encryption key[/pair] object.
Method to generate a random key of a given length.
string
_getRandomKey
([integer $length = 256])
-
integer
$length: The length of the key to generate.
Convert hex to an integer
integer
_hexToInt
(string $s, integer $i)
-
string
$s: The hex string to convert.
-
integer
$i: The offset?
Convert hex to an array of integers
array
_hexToIntArray
(string $hex)
-
string
$hex: The hex string to convert to an integer array.
Convert an integer to a hexadecimal string.
string
_intToHex
(integer $i)
-
integer
$i: An integer value to convert to a hex string.