$pass = 'wo shi mi ma'; $method = 'aes128'; # 加密 $enc_data = openssl_encrypt('wo shi shu ju', $method, $pass); # 解密 $data = openssl_decrypt($enc_data, $method, $pass);
$pass = 'wo shi mi ma'; $method = 'aes128'; # 加密 $enc_data = openssl_encrypt('wo shi shu ju', $method, $pass); # 解密 $data = openssl_decrypt($enc_data, $method, $pass);