4
When I used a PHP function, called openssl_encrypt
, that encrypts data, I came across the term iv
, that is Initialization Vector.
I’d like to understand a little bit about that;
I saw it in a similar example:
$iv = openssl_random_pseudo_bytes(16);
openssl_encrypt($texto, $cipher, $password, $options, $iv)
I understood that this initialization vector has to do with a random value, but it was just a small perception.
I wanted to know more in detail:
- What is Initialization Vector?
- What does it have to do with encryption? Why is it necessary?