ICryptoProvider.cs 482 B

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