-1
如果我的变量是这样的:加密 - 解密相同的变量 - PHP
$name = "John";
,我希望上面的变量,将被加密的东西,如:
encrypt($name) //Will output something like: AIfzx353HA7f (Just random chars)
然后,可以解密它,所以它会再次输出John。
decrypt($name) //Will output John
这可能与PHP有关吗?
可能的重复问题:http://stackoverflow.com/questions/1289061/best-way-to-use-php-to-encrypt-and-decrypt –
-1因为快速谷歌搜索直接导致我重复问题:http://www.google.com/search?client=safari&rls=zh-CN&q=encrypt+decrypt+php&ie=UTF-8&oe=UTF-8 –