topic description
encryption key
2fs5uhnjcnpxcpg9
plaintext
3280VAND 99br 20120201123050
ciphertext
daa745f1901364c0bd42b9658db3db96336758cd34b2a57
sources of topics and their own ideas
related codes
/ / Please paste the code text below (do not replace the code with pictures)
$key = "2fs5uhnjcnpxcpg9";
$method = "blowfish";
$privateKey = $key;
$data = "3280:99:20120201123050";
$encrypted = openssl_encrypt($data, $method, $privateKey);
var_dump($encrypted);
what result do you expect? What is the error message actually seen?
Warning: openssl_encrypt(): Using an empty Initialization Vector (iv) is potentially insecure and not recommended in /home/wwwroot/www.testphp7.com/index.php on line 10
string(32) "2qdF8ZATZMCT14pt78C2ZAxCWc703X/r"
I hope that encryption mode ECB, does not need initialization vector through openssl_encrypt (IV,Initialization Vector), Padding mode: PKCS5Padding, I change how to modify openssl_encrypt parameters