ICryptoProvider.cs 450 B

12345678910111213141516171819
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Model.Cryptography
  3. {
  4. public interface ICryptoProvider
  5. {
  6. string DefaultHashMethod { get; }
  7. IEnumerable<string> GetSupportedHashMethods();
  8. byte[] ComputeHash(string HashMethod, byte[] bytes, byte[] salt);
  9. byte[] ComputeHashWithDefaultMethod(byte[] bytes, byte[] salt);
  10. byte[] GenerateSalt();
  11. byte[] GenerateSalt(int length);
  12. }
  13. }