标签:openssl dns cipher bytes enc php7 android oid 重复
$key = ‘SK7381DNSU#&#@DS‘; //key的长度保持16位 加粗 标识 $cipher = "AES-128-ECB"; $iv_len = openssl_cipher_iv_length($cipher); $iv = openssl_random_pseudo_bytes($iv_len); $encrypt_data = openssl_encrypt(json_encode($response), $cipher, $key, $options = 0, $iv, $tag); //加密后自带base64_encode 切勿重复encode
标签:openssl dns cipher bytes enc php7 android oid 重复
原文地址:https://www.cnblogs.com/onephp/p/9507671.html