public string GetHash(HashContext context) { if (context == null) { throw new ArgumentNullException("context"); } if (string.IsNullOrEmpty(context.FilePathAndName)) { return(Locust.Cryptography.Cryptography.GetChecksumSHA256FromString(context.Data)); } else { return(Locust.Cryptography.Cryptography.GetChecksumSHA256FromFile(context.FilePathAndName)); } }
public string GetHash(HashContext context) { return(GetHash()); }