-
Notifications
You must be signed in to change notification settings - Fork 4
Hashing
Michael Lidgren edited this page Sep 12, 2020
·
1 revision
var hasher = Hasher.Create();
hasher.Add("hello");
hasher.Add(42);
hasher.Add(myByteArray);
var result = hasher.Finalize64(); // for a 64 bit hash of added data
... or...
var result = hasher.Finalize32(); // for a 32 bit hash of added data
var result = FileHash.Hash("myFile.txt");
var result = HashUtil.Hash64("someString"); // internally creates a Hasher and adds it