Luk*_*keH 20
随机MD5哈希值实际上只是一个128位密码强度随机数.
var bytes = new byte[16];
using (var rng = new RNGCryptoServiceProvider())
{
rng.GetBytes(bytes);
}
// and if you need it as a string...
string hash1 = BitConverter.ToString(bytes);
// or maybe...
string hash2 = BitConverter.ToString(bytes).Replace("-", "").ToLower();
Run Code Online (Sandbox Code Playgroud)
Mar*_*ulz 14
只需创建一个随机字符串Guid.NewGuid()并生成其MD5校验和.
| 归档时间: |
|
| 查看次数: |
17321 次 |
| 最近记录: |