jellyfin/MediaBrowser.Model/Cryptography/ICryptoProvider.cs

22 lines
721 B
C#
Raw Normal View History

using System;
2018-12-28 00:27:57 +01:00
using System.IO;
using System.Collections.Generic;
2018-12-28 00:27:57 +01:00
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);
byte[] ComputeHash(string HashMethod, byte[] bytes, byte[] salt);
byte[] ComputeHashWithDefaultMethod(byte[] bytes, byte[] salt);
byte[] ComputeHash(PasswordHash hash);
byte[] GenerateSalt();
2018-12-28 00:27:57 +01:00
}
}