Merge pull request #7575 from Bond-009/md5
This commit is contained in:
commit
c7fd7a29f8
|
@ -31,11 +31,7 @@ namespace MediaBrowser.Common.Extensions
|
||||||
public static Guid GetMD5(this string str)
|
public static Guid GetMD5(this string str)
|
||||||
{
|
{
|
||||||
#pragma warning disable CA5351
|
#pragma warning disable CA5351
|
||||||
using (var provider = MD5.Create())
|
return new Guid(MD5.HashData(Encoding.Unicode.GetBytes(str)));
|
||||||
{
|
|
||||||
return new Guid(provider.ComputeHash(Encoding.Unicode.GetBytes(str)));
|
|
||||||
}
|
|
||||||
|
|
||||||
#pragma warning restore CA5351
|
#pragma warning restore CA5351
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user