ICryptoProvider.cs 513 B

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