Skip to content

Instantly share code, notes, and snippets.

View bjornbouetsmith's full-sized avatar

Bjørn Smith bjornbouetsmith

View GitHub Profile
// Based on https://gist.github.com/halmartin/28e013a9034be04777073bccc918cb95 (python)
// And uses Crc32 and Base32 from other github code
// Code should run on .NET Framework 4.7+
using System.Security.Cryptography;
// The 3 constants is byte definitions inside the library mentioned in the original code
// These should be HEX encoded to strings without leading 0x, i.e. "0d0a" etc.
const string AES_IV = "";// This is one of the values you need to dig out of the library;
const string HMAC_KEY = "";// This is one of the values you need to dig out of the library
const string HMAC_MSG_RAW = "";// This is one of the values you need to dig out of the library