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 details)

Uploaded Source

File details

Details for the file BaseHash-3.0.10.tar.gz.

File metadata

  • Download URL: BaseHash-3.0.10.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for BaseHash-3.0.10.tar.gz
Algorithm Hash digest
SHA256 ed7a694ef9cdf1b8ea1b2900036de8d3f7cb7fe02cebdc4b3c5b8c80c8150267
MD5 c46efc7074570a0be7fcc4022af9a545
BLAKE2b-256 dcf3e06246d001e97d2d8fe81cda3385613bb3b5e01f9ba5d1469331ea7d4c0d

See more details on using hashes here.

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