Home  >  Article  >  php教程  >  php5中文函数手册: PHP加密解密函数,适合PHP4、PHP5

php5中文函数手册: PHP加密解密函数,适合PHP4、PHP5

WBOY
WBOYOriginal
2016-06-21 08:49:48792browse

今天刚要对一个数据进行加密存储,并且能读取出来,找到两个比较好的函数做个记录:
//加密函数base64_encode()
$str="加密";
echo base64_encode($str);
//解密函数base64_decode()
$str="vNPD3A==";
echo base64_decode($str);
?>
本文链接http://www.cxybl.com/html/wlbc/Php/20130522/37975.html



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn