aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Cryptography/ICryptoProvider.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2019-05-21 19:28:34 +0200
committerBond_009 <bond.009@outlook.com>2019-07-06 14:52:24 +0200
commit0f897589ed6349bb3c88919b06861daa80aec1be (patch)
tree76a611f54b5138390c27606d4b5c8293f78faa74 /MediaBrowser.Model/Cryptography/ICryptoProvider.cs
parent4f2d601f02d56ffe15b0c588c45d699213a8052f (diff)
Streamline authentication proccess
Diffstat (limited to 'MediaBrowser.Model/Cryptography/ICryptoProvider.cs')
-rw-r--r--MediaBrowser.Model/Cryptography/ICryptoProvider.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/MediaBrowser.Model/Cryptography/ICryptoProvider.cs b/MediaBrowser.Model/Cryptography/ICryptoProvider.cs
index 5988112c2e..9e85beb43c 100644
--- a/MediaBrowser.Model/Cryptography/ICryptoProvider.cs
+++ b/MediaBrowser.Model/Cryptography/ICryptoProvider.cs
@@ -6,9 +6,14 @@ namespace MediaBrowser.Model.Cryptography
{
public interface ICryptoProvider
{
+ string DefaultHashMethod { get; }
+ [Obsolete("Use System.Security.Cryptography.MD5 directly")]
Guid GetMD5(string str);
+ [Obsolete("Use System.Security.Cryptography.MD5 directly")]
byte[] ComputeMD5(Stream str);
+ [Obsolete("Use System.Security.Cryptography.MD5 directly")]
byte[] ComputeMD5(byte[] bytes);
+ [Obsolete("Use System.Security.Cryptography.SHA1 directly")]
byte[] ComputeSHA1(byte[] bytes);
IEnumerable<string> GetSupportedHashMethods();
byte[] ComputeHash(string HashMethod, byte[] bytes);
@@ -17,6 +22,5 @@ namespace MediaBrowser.Model.Cryptography
byte[] ComputeHashWithDefaultMethod(byte[] bytes, byte[] salt);
byte[] ComputeHash(PasswordHash hash);
byte[] GenerateSalt();
- string DefaultHashMethod { get; }
}
}