public static String HashFile(String filename) { try { byte[] filedata = File.ReadAllBytes(filename); return(VoodooHash.Hash(filedata)); } catch (Exception) { return(String.Empty); } }
public static String Hash(String str) { byte[] bytes = System.Text.Encoding.Unicode.GetBytes(str); return(VoodooHash.Hash(bytes)); }