Home > php教程 > php手册 > body text

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

WBOY
Release: 2016-06-21 08:49:48
Original
798 people have browsed it

今天刚要对一个数据进行加密存储,并且能读取出来,找到两个比较好的函数做个记录:
//加密函数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



Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!