decode($string[, $key = ''])
Parameters: |
|
---|---|
Returns: |
Plain-text string |
Return type: |
string |
Decrypts an encoded string. Example:
$encrypted_string = 'APANtByIGI1BpVXZTJgcsAG8GZl8pdwwa84'; $plaintext_string = $this->encrypt->decode($encrypted_string);
You can optionally pass your encryption key via the second parameter if you don’t want to use the one in your config file:
$msg = 'My secret message'; $key = 'super-secret-key'; $encrypted_string = $this->encrypt->decode($msg, $key);
Please login to continue.