Best Way to Generate Random Salt in C#? [closed]
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this questionQuestion says it all, what is the best method of generating a random salt (to be used with a h开发者_StackOverflow社区ash function) in C#?
You should use the RNGCryptoServiceProvider
class to generate cryptographically secure random numbers..
Enterprise Library should be able to create a random salt for you very effectively. Check it out here.
精彩评论