ICryptoProvider.cs 572 B

1234567891011121314151617181920212223
  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);
  9. byte[] ComputeHashWithDefaultMethod(byte[] bytes);
  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. }