Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

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 https://code.google.com/p/crypto-js to send encrypted messages between multiple clients.

share|improve this question
2  
Take a look at this question on SO, particularly this answer –  rath Jul 9 '13 at 17:10

1 Answer 1

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
1  
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

 
discard

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.