<?php
$param = ' '; //加密内容
$key = ' '; //key值
$key = md5($key);
$vi = substr($key,-16);
$method = ' ' ;//16位AES加密算法
$conten1 = openssl_encrypt($param, $method, $key,OPENSSL_RAW_DATA,$vi);
$conten1 = base64_encode($conten1);
$value = openssl_decrypt(base64_decode($conten1),$method,$key,OPENSSL_RAW_DATA,$vi);
echo ($param);
echo '<br/>';
echo '<br/>';
print_r($conten1);
echo '<br/>';
echo '<br/>';
echo $value;