override MD5, so compatible with FIPS

This commit is contained in:
Gang Zhuo
2015-11-23 23:52:54 +08:00
parent 1097d4fc5b
commit dd0d047402
7 changed files with 88 additions and 5 deletions
@@ -24,7 +24,7 @@ namespace Shadowsocks.Encryption
protected byte[] GetPasswordHash()
{
byte[] inputBytes = Encoding.UTF8.GetBytes(Password);
byte[] hash = MD5.Create().ComputeHash(inputBytes);
byte[] hash = MbedTLS.MD5(inputBytes);
return hash;
}