开发者

Best Way to Generate Random Salt in C#? [closed]

开发者 https://www.devze.com 2023-03-14 09:12 出处:网络
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th
Closed. This question is opinion-based. It is not currently accepting answers.

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 question

Question 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消