Warning openssl_decrypt: IV passed is only 12 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 in PATH_FILE on
Warning: openssl_decrypt(): IV passed is only 12 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 in PATH_FILE on line LINE_N
openssl_encrypt(): IV passed is only 12 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 in PATH_FILE on line LINE_N
How to fix the errors
- Ensure your SALT only using NUMBER ONLY and Minimum length of SALT is 12.
- Ensure your PHP version is 7 or above
That's how to fix openssl_encrypt() and openssl_decrypt() errors