PHP mcrypt 实现对称加密(AES)算法
class Security { public static function encrypt($input, $key,$ivstr) { $size = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $input = Security::pkcs5_pad($input, $size) »
class Security { public static function encrypt($input, $key,$ivstr) { $size = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $input = Security::pkcs5_pad($input, $size) »
You're live! Nice. We've put together a little post to introduce you to the Ghost editor and get you started. You can manage your content by »