Пример #1
0
 public static String HashFile(String filename)
 {
     try
     {
         byte[] filedata = File.ReadAllBytes(filename);
         return(VoodooHash.Hash(filedata));
     }
     catch (Exception)
     {
         return(String.Empty);
     }
 }
Пример #2
0
 public static String Hash(String str)
 {
     byte[] bytes = System.Text.Encoding.Unicode.GetBytes(str);
     return(VoodooHash.Hash(bytes));
 }