using System; using System.Text; using System.Security.Cryptography; using Extensions.Data;
public class Program { public static void Main() { byte[] input = Encoding.ASCII.GetBytes("Portal_QBHN.plist"); // the data to be hashed. byte[] result = null; using (HashAlgorithm xxhash = XXHash64.Create()) { result = xxhash.ComputeHash(input); // compute the hash. } if (result != null) { Console.WriteLine(BitConverter.ToInt64(result, 0).ToString("x")); } } }
You need to use quickbms_4gb_files.exe for the work because it's a 64bit crc.
If you want to "dump" that number in a variable use: string VAR = QUICKBMS_CRC With endian big the result will just be the one you were expecting: "Ö0{`Æd0 Another alternative is using the byte2hex conversion (string or log)