aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Cryptography/ICryptoProvider.cs
blob: 656c04f4638519e9b69bf1afc673f7c357691bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma warning disable CS1591

using System.Collections.Generic;

namespace MediaBrowser.Model.Cryptography
{
    public interface ICryptoProvider
    {
        string DefaultHashMethod { get; }

        IEnumerable<string> GetSupportedHashMethods();

        byte[] ComputeHash(string HashMethod, byte[] bytes, byte[] salt);

        byte[] ComputeHashWithDefaultMethod(byte[] bytes, byte[] salt);

        byte[] GenerateSalt();

        byte[] GenerateSalt(int length);
    }
}