用这个加密:base64_encode ( string $data )
<?php $str = 'This is an encoded string'; echo base64_encode($str); ?>
用这个解密:base64_decode ( string $data [, bool $strict= false ] )
<?php $str = 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw=='; echo base64_decode($str); ?>

版权声明:若无特殊注明,本文皆为( yueshuo )原创,转载请保留文章出处。