aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Cryptography/ICryptoProvider.cs
blob: 5988112c2e329195878b6bc6bb4ccb42a02635aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.IO;
using System.Collections.Generic;

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();
        string DefaultHashMethod { get; }
    }
}