We've mentioned that using a password open SSL will derive the key based on the password as one of its parameters. Let's see how we can output the password sorry, the key and the salt that are being derived from the password. So let's use echo to write down some text. That's graphics. Open SSL. Let's use a Aes 128 ECB and let's use hyphen and uppercase p We will be asked for a password.
That's insert and password. And voila, we have the key that is derived from the password. And we also have the salt. Now, since we're using ECB, we do not need an IV an initialization vector, but if we will use the same encryption, which using CBC. Let's insert the password. And there it is.
We have the salt we have the key and we have the IV