1)URL加密
用于防止使用 get()方式提交的url中暴露用户信息;
string urlencode(string str);
<href =index.php?page=<?php echo urlencode("首页")?> >首页</a>
2)base64编码加密
<?php
$pwd= 123;
$jiami=base64encode($pwd);
echo $pwd;
$jiemi=base64decode($jiami);
echo $jiemi;
3)crypt加密技术
特点:单向加密。
string crypt(string str,[string salt])
4)MD5加密
特点:单向加密
string md5(string str)