首页 > Web开发 > 详细

PHP实现加密的几种方式介绍

时间:2017-03-13 13:39:25      阅读:194      评论:0      收藏:0      [点我收藏+]

1. MD5加密

不可逆加密
md5($password)
2. Crype加密
string crypt ( string $str [, string $salt ] )
不可逆

3. Sha1加密
string sha1 ( string $str [, bool $raw_output = false ] )
不可逆

4. URL加密
可逆加密
urlencode ( string $str )
urldecode($encodeUrl)

5. Base64信息编码加密

base64_encode ( string $data )
base64_decode ( string $data [, bool $strict = false ] )

PHP实现加密的几种方式介绍

原文:http://www.cnblogs.com/yiqianer/p/6542089.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!