mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 19:14:48 +02:00
Merge pull request #7575 from Bond-009/md5
This commit is contained in:
commit
c7fd7a29f8
1 changed files with 1 additions and 5 deletions
|
@ -31,11 +31,7 @@ namespace MediaBrowser.Common.Extensions
|
|||
public static Guid GetMD5(this string str)
|
||||
{
|
||||
#pragma warning disable CA5351
|
||||
using (var provider = MD5.Create())
|
||||
{
|
||||
return new Guid(provider.ComputeHash(Encoding.Unicode.GetBytes(str)));
|
||||
}
|
||||
|
||||
return new Guid(MD5.HashData(Encoding.Unicode.GetBytes(str)));
|
||||
#pragma warning restore CA5351
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue