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

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);
    }
}