jellyfin/MediaBrowser.Model/Cryptography/ICryptoProvider.cs

24 lines
572 B
C#
Raw Normal View History

2019-03-05 08:58:25 +01:00
using System.Collections.Generic;
namespace MediaBrowser.Model.Cryptography
{
public interface ICryptoProvider
{
2019-05-21 19:28:34 +02:00
string DefaultHashMethod { get; }
2019-03-05 08:58:25 +01:00
IEnumerable<string> GetSupportedHashMethods();
2019-03-05 08:58:25 +01:00
byte[] ComputeHash(string HashMethod, byte[] bytes);
2019-03-05 08:58:25 +01:00
byte[] ComputeHashWithDefaultMethod(byte[] bytes);
2019-03-05 08:58:25 +01:00
byte[] ComputeHash(string HashMethod, byte[] bytes, byte[] salt);
2019-03-05 08:58:25 +01:00
byte[] ComputeHashWithDefaultMethod(byte[] bytes, byte[] salt);
byte[] GenerateSalt();
byte[] GenerateSalt(int length);
2019-03-05 08:58:25 +01:00
}
}