1
$\begingroup$

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.

$\endgroup$
1

1 Answer 1

8
$\begingroup$

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

$\endgroup$
1
  • 1
    $\begingroup$ If you use an authenticated encryption mode like GCM you don't have to worry about authenticating the IV. $\endgroup$
    – pg1989
    Jul 9, 2013 at 17:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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