laravel-encryptable icon indicating copy to clipboard operation
laravel-encryptable copied to clipboard

openssl_encrypt (IV) error

Open jramhani opened this issue 2 years ago • 0 comments

openssl_encrypt (IV) error

I got this error when trying this code $encrypted = Encryption::php()->encrypt($value); :

openssl_encrypt(): Using an empty Initialization Vector (iv) is potentially insecure and not recommended vendor / maize-tech / laravel-encryptable / src / PHPEncrypter.php : 82

I found the potential reason here : https://stackoverflow.com/questions/11821195/use-of-initialization-vector-in-openssl-encrypt

Am i doing something wrong ? or is it a real issue ?

jramhani avatar Sep 05 '23 13:09 jramhani