What's the best way to append a Iv to a encrypted message?
Can I append it by doing a base 64 encoding out of obtained Iv and use a delimiter to append it with a bqse64 encrypted message? Or suggest some good and secure ideas.
What's the best way to append a Iv to a encrypted message?
Can I append it by doing a base 64 encoding out of obtained Iv and use a delimiter to append it with a bqse64 encrypted message? Or suggest some good and secure ideas.
You can find some excellent answers here: AES encryption how to transport IV
Quote:
There is no security hole by sending the IV in cleartext - this is similar to storing the salt for a hash in plaintext: As long as the attacker has no control over the IV/salt, and as long as it is random, there is no problem.
So it is up to you how to want to transport/store the IV, as long as it is random and not controlled by an attacker. There is no established optimal way.