CodeIgniter 加密类 - $this->encrypt->decode()

解密一个已加密的字符串。例如:[code]$encrypted_string = ‘APANtByIGI1BpVXZTJgcsAG8GZl8pdwwa84’;

$plaintext_string = $this->encrypt->decode($encrypted_string);[/code]如果你不想使用配置文件中的密钥,你可以通过可选的第二个参数随意设置你的密钥。[code]$msg = ‘My secret message’;
$key = ‘super-secret-key’;

$encrypted_string = $this->encrypt->decode($msg, $key);[/code]文章来源:http://cwiki.ossez.com/pages/viewpage.action?pageId=2392147