Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public string GetBytesReport() => Bytes.Any() ? Bytes.Select(b => $"{b.ToString("X")}({Encoding.Default.GetString(new byte[1] { b })})").Aggregate((a, b) => $"{a} - {b}") : "";