public string GenerateSignature() { if (Bytes == null || !Bytes.Any()) { return(null); } try { return(ImageHasher.AverageHash(Bytes).ToString()); } catch (Exception ex) { Trace.WriteLine($"Error Generating Signature Ex [{ ex }]", "Warning"); } return(null); }
public string GetBytesReport() => Bytes.Any() ? Bytes.Select(b => $"{b.ToString("X")}({Encoding.Default.GetString(new byte[1] { b })})").Aggregate((a, b) => $"{a} - {b}") : "";