Question says it all, what is the best method of generating a random salt (to be used with a hash function) in C#?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
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.