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.

Assuming I had to distribute salt+ciphertext together over an insecure channel, isn't it better to store the salt encrypted?

By encrypted I mean with a block cipher and with key and IV derived from the same passphrase used to encrypt the original text.

I've been told that leaving salt unencrypted is the way to go. Why? Why not encrypt? Isn't it always better?

share|improve this question
    
Encrypting the salt either uses another salt, or lets an attacker use pre-computation $\hspace{1.5 in}$ for the first part of each decryption attempt. $\:$ –  Ricky Demer Aug 30 '12 at 5:28
add comment

1 Answer 1

up vote 5 down vote accepted

No, it is not better. To send the salt encrypted, one would need a key and IV (another salt) to encrypt it. This adds unnecessary complexity as the security of the ciphertext does not depend on the salt being kept private. So, encrypting the salt adds negligible security yet adds a fair amount of complexity. Keeping things as simple as possible is often a good rule of thumb.

share|improve this answer
add comment

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.