Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Cakephp 2.1。
如何加密和解密字符串。
根据 CakePHP文档:
使用 my_key 加密您的秘密密码
$secret = Security::cipher('my secret password', 'my_key');
稍后解密您的秘密密码
$nosecret = Security::cipher($secret, 'my_key');