public IEnumerable <byte> HashBytes(HashAlgorithm hashAlgorithm, string value, Encoding encoding, IEnumerable <byte> saltBytes = null) { return(HashBytes(hashAlgorithm, encoding.GetBytes(value), saltBytes)); }
public IEnumerable <byte> HashBytes(HashAlgorithm hashAlgorithm, IEnumerable <byte> sourceBytes, IEnumerable <byte> saltBytes = null) { return(_hashAlgorithmSwitch.Case(hashAlgorithm).Invoke(sourceBytes, saltBytes)); }