Question says it all, what is the best method of generating a random salt (to be used with a hash function) in C#?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You should use the RNGCryptoServiceProvider
class to generate cryptographically secure random numbers..
回答2:
Enterprise Library should be able to create a random salt for you very effectively. Check it out here.