6f17a0b7af
* Remove legacy auth code * Adds tests so we don't break PasswordHash (again) * Clean up interfaces * Remove duplicate code * Use auto properties * static using * Don't use 'this' * Fix build
24 lines
572 B
C#
24 lines
572 B
C#
using System.Collections.Generic;
|
|
|
|
namespace MediaBrowser.Model.Cryptography
|
|
{
|
|
public interface ICryptoProvider
|
|
{
|
|
string DefaultHashMethod { get; }
|
|
|
|
IEnumerable<string> GetSupportedHashMethods();
|
|
|
|
byte[] ComputeHash(string HashMethod, byte[] bytes);
|
|
|
|
byte[] ComputeHashWithDefaultMethod(byte[] bytes);
|
|
|
|
byte[] ComputeHash(string HashMethod, byte[] bytes, byte[] salt);
|
|
|
|
byte[] ComputeHashWithDefaultMethod(byte[] bytes, byte[] salt);
|
|
|
|
byte[] GenerateSalt();
|
|
|
|
byte[] GenerateSalt(int length);
|
|
}
|
|
}
|