$CI
$CI :
CodeIgniter Encryption Class
Provides two-way keyed encoding using XOR Hashing and Mcrypt
encode( $string, $key = '') : string
Encode
Encodes the message string using bitwise XOR encoding. The key is combined with a random hash, and then it too gets converted using XOR. The whole thing is then run through mcrypt (if supported) using the randomized key. The end result is a double-encrypted message string that is randomized with each call to this function, even if the supplied message and key are the same.
$string | ||
$key |
encode_from_legacy( $string, $legacy_mode = MCRYPT_MODE_ECB, $key = '') : string
Encode from Legacy
Takes an encoded string from the original Encryption class algorithms and returns a newly encoded string using the improved method added in 2.0.0 This allows for backwards compatibility and a method to transition to the new encryption algorithms.
For more details, see http://codeigniter.com/user_guide/installation/upgrade_200.html#encryption
$string | ||
$legacy_mode | ||
$key |