|
@@ -164,7 +164,7 @@ namespace EasyDevCore.Common
|
|
|
using (var encrypt = System.Security.Cryptography.MD5.Create())
|
|
|
{
|
|
|
byte[] hash = encrypt.ComputeHash(stream);
|
|
|
- return BitConverter.ToString(hash);
|
|
|
+ return hash.ToHex();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -198,7 +198,7 @@ namespace EasyDevCore.Common
|
|
|
using (var encrypt = System.Security.Cryptography.MD5.Create())
|
|
|
{
|
|
|
byte[] hash = encrypt.ComputeHash(buffer, offset, count);
|
|
|
- return BitConverter.ToString(hash);
|
|
|
+ return hash.ToHex();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -222,7 +222,7 @@ namespace EasyDevCore.Common
|
|
|
using (var encrypt = System.Security.Cryptography.SHA1.Create())
|
|
|
{
|
|
|
byte[] hash = encrypt.ComputeHash(stream);
|
|
|
- return BitConverter.ToString(hash);
|
|
|
+ return hash.ToHex();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -242,7 +242,7 @@ namespace EasyDevCore.Common
|
|
|
using (var encrypt = System.Security.Cryptography.SHA1.Create())
|
|
|
{
|
|
|
byte[] hash = encrypt.ComputeHash(buffer, offset, count);
|
|
|
- return BitConverter.ToString(hash);
|
|
|
+ return hash.ToHex();
|
|
|
|
|
|
}
|
|
|
}
|