Reversible obfuscated identifier hashes.
Project description
BaseHash is a small library for creating reversible obfuscated identifier hashes to a given base and length. The project is based on the GO library, PseudoCrypt by Kevin Burns (https://github.com/KevBurnsJr/pseudocrypt). The library is extendible to use custom alphabets and other bases.
The library uses golden primes and the Baillie-PSW primality test or the gmpy2.is_prime (if available) for hashing to maximum value base ** length - 1.