Reputation: 153
I have been reading up on Symmetric Encryption and it appears if I want to add salt to my encryption I then would need to provide that salt value to the end user as well that wishes to decrypt the content, is this correct? Also if I wish to use an Initialization Vector(IV) I would also need to provide that to the end user that is decrypting is that correct? Or is that something that only I would need when I encrypt the content?
Upvotes: 0
Views: 301
Reputation: 112857
The IV does not need to be secret and is often prepended to the encrypted data to make it available during decryption. The IV is generally a sequence of random bytes the length of the algorithm block size.
Salt as used in the question is undefined for encryption, you need to provide more information of how the salt related to the encryption in the question. Sometimes a salt is used when deriving an encryption key from a password.
Upvotes: 2