public static uint Crc32(string str) { return(Crc.Crc32(str, "utf-8")); }
public static ulong Crc64(string str) { return(Crc.Crc64(Encoding.UTF8.GetBytes(str))); }
public static uint Crc32(string str, string encoding) { byte[] bytes = Encoding.GetEncoding(encoding).GetBytes(str); return(Crc.Crc32(bytes)); }