Skip to main content

Reversible obfuscated identifier hashes.

Project description

BaseHash

Build Status

*** DEPRECATED ***

BaseHash is now deprecated and will no longer be maintained. Obfuskey has been created to replace it. A decision made when looking to modernize this utility. Obfuskey is only tested on python3.6 and higher, so if you're needing lower support, you can continue to use BaseHash.

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. 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 length (base ** length - 1).

v3.0.5

A massive overhaul was done with the primality algorithms. Including support for gmpy2 if it available on the system for that much more of an increase.

All methods being used to check primality in primes.py have been optimized and benchmarked to try to get the best possible preformance when gmpy2.is_prime and gmpy2.next_prime are not available.

Install

pip install basehash

Testing

nosetests tests/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BaseHash-3.0.10.tar.gz (5.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page