aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Cryptography/ICryptoProvider.cs
diff options
context:
space:
mode:
authorPhallacy <Dragoonmac@gmail.com>2019-02-12 02:16:03 -0800
committerPhallacy <Dragoonmac@gmail.com>2019-02-12 02:16:03 -0800
commit05bbf71b6d97614888efe103f763753e4487cc2c (patch)
treea43ea503958842d1852c19e871d995cf9a747dc1 /MediaBrowser.Model/Cryptography/ICryptoProvider.cs
parent8bf88f4cb2ddb140baffd8e4542d8f528b482a67 (diff)
sha256 with salt auth and sha1 interop
Diffstat (limited to 'MediaBrowser.Model/Cryptography/ICryptoProvider.cs')
-rw-r--r--MediaBrowser.Model/Cryptography/ICryptoProvider.cs29
1 files changed, 15 insertions, 14 deletions
diff --git a/MediaBrowser.Model/Cryptography/ICryptoProvider.cs b/MediaBrowser.Model/Cryptography/ICryptoProvider.cs
index ec7e57fec..8accc696e 100644
--- a/MediaBrowser.Model/Cryptography/ICryptoProvider.cs
+++ b/MediaBrowser.Model/Cryptography/ICryptoProvider.cs
@@ -1,15 +1,15 @@
-using System;
-using System.IO;
-using System.Collections.Generic;
-
-namespace MediaBrowser.Model.Cryptography
-{
- public interface ICryptoProvider
- {
- Guid GetMD5(string str);
- byte[] ComputeMD5(Stream str);
- byte[] ComputeMD5(byte[] bytes);
- byte[] ComputeSHA1(byte[] bytes);
+using System;
+using System.IO;
+using System.Collections.Generic;
+
+namespace MediaBrowser.Model.Cryptography
+{
+ public interface ICryptoProvider
+ {
+ Guid GetMD5(string str);
+ byte[] ComputeMD5(Stream str);
+ byte[] ComputeMD5(byte[] bytes);
+ byte[] ComputeSHA1(byte[] bytes);
IEnumerable<string> GetSupportedHashMethods();
byte[] ComputeHash(string HashMethod, byte[] bytes);
byte[] ComputeHashWithDefaultMethod(byte[] bytes);
@@ -17,5 +17,6 @@ namespace MediaBrowser.Model.Cryptography
byte[] ComputeHashWithDefaultMethod(byte[] bytes, byte[] salt);
byte[] ComputeHash(PasswordHash hash);
byte[] GenerateSalt();
- }
-}
+ string DefaultHashMethod { get; }
+ }
+}