mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
* 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
23 lines
572 B
C#
23 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);
|
|
}
|
|
}
|