Merge pull request #7575 from Bond-009/md5

pull/7611/head
Cody Robibero 3 years ago committed by GitHub
commit c7fd7a29f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save