Hacklab member hashmap tools
Every time our private membership repository changes, we generate HMAC using SHA-256 hash function from all of our members' email addresses.
It is useful for giving discounts to some services without revealing the membership registry open to the Internet. Only the number of members is shown. When you know the HMAC, it is possible to check a membership but not decode full contents of the registry.
Every service has its own hash map.
Hash file contains a number of 256 bit (32 byte) HMAC hashes of member email addresses sorted by the raw hash value. The file is pure binary for added epicness.
Email addresses are normalized using the following algorithm:
- Trim whitespace
- Convert to lowercase
+aliases from the address (e.g. email@example.com → firstname.lastname@example.org)
- Calculate HMAC from the email using given hmac key
See tools/check for reference implementation
To compare, check the normalized email address against each 32 byte entry.