aboutsummaryrefslogtreecommitdiff
path: root/Emby.Common.Implementations/Cryptography
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-03 18:34:16 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-03 18:34:16 -0400
commitf52373609eac871c2883e1052020ff5327b19707 (patch)
treedc29fc2888aeb2fe55a92b8859765caeff3f2cfb /Emby.Common.Implementations/Cryptography
parent1d62a88fd8147e9c1bf01cac2852b929b1737c17 (diff)
move classes to portable project
Diffstat (limited to 'Emby.Common.Implementations/Cryptography')
-rw-r--r--Emby.Common.Implementations/Cryptography/CryptographyProvider.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Emby.Common.Implementations/Cryptography/CryptographyProvider.cs b/Emby.Common.Implementations/Cryptography/CryptographyProvider.cs
index e5e4b1c7c1..7b8d95b96c 100644
--- a/Emby.Common.Implementations/Cryptography/CryptographyProvider.cs
+++ b/Emby.Common.Implementations/Cryptography/CryptographyProvider.cs
@@ -35,5 +35,13 @@ namespace Emby.Common.Implementations.Cryptography
return provider.ComputeHash(str);
}
}
+
+ public byte[] GetMD5Bytes(byte[] bytes)
+ {
+ using (var provider = MD5.Create())
+ {
+ return provider.ComputeHash(bytes);
+ }
+ }
}
}