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.
php是否有任何用于编码和解码字符串的内置函数,我希望它非常简单,mcrypt可以完成这项工作,但我仍然不需要顶级加密。除了urlencode()
看看OpenSSL
$key = file_get_contents('keyfile'); openssl_private_encrypt($data, $encrypted, $key); openssl_private_decrypt($data, $decrypted, $key);