Advertisement

09.09.2008 at 07:41PM PDT, ID: 23717906
[x]
Attachment Details

Where to store the Salt?

[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4
Tags:

Encryption, Rijndael, AES, Salt

I cant quite get a grasp on salts specifically pertaining to Symmetric Key Algorithms such as Rijndael. I'm doing some encryption in .Net using the managed Rijndael algorithm and I derive the key using Rfc2898DeriveBytes. It takes a plain text password and bytes of salt and performs multiple iterations of hashing to produce the byte key.

So, I generate some random bytes and compute the key, but now to decode I'm going to need those same salt bytes along with the same password of course. So how do I remember all these salts? Can I append them to the encrypted bytes then pull them back for decrypting? They definitely arnt private that way.

If they arnt private, than what is the point? The only thing I really see going on is that the same file encrypted with the same password but different salt will yield difference bytes but how does it help against brute forcing of the password if the salt is know? [brute attemp]+(knownsalt)

If they are to be private, then why wouldn't the suggestion just to be to generate an entire random key for each file?


Thanks for the help, now excuse me while I go pour some salt in my eye.
Answered By: arnold
Expert Since: 04/18/1997
Accepted Solutions: 1118
arnold has been an Expert for 11 years 8 months, during which he has posted 4638 comments and answered 1118 questions. arnold is just one of 803 experts in the Encryption for Network Security Zone. 4 experts collaborated on this answer, which was graded a "B" by the asker.
 
 
20081119-EE-VQP-48 / EE_QW_2_20070628