Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using AES to encrypt the message. both sender and receiver know the passphrase, but only sender knows IV and salt

I assume that receiver also needs to know IV and salt to decypher text;

is it safe to pass IV and salt along with the cyphertext over an unsecured network, or will this compromise the security?

I'm using to send encrypted messages between multiple clients.

share|improve this question
Take a look at this question on SO, particularly this answer – rath Jul 9 '13 at 17:10
up vote 8 down vote accepted

IVs and salts are public, so they are safe to pass with the ciphertext. They should be authenticated along with the ciphertext though.

share|improve this answer
If you use an authenticated encryption mode like GCM you don't have to worry about authenticating the IV. – pg1989 Jul 9 '13 at 17:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.