Skip to main content

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/

Metadata

Release files for BaseHash 3.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BaseHash 3.0.10
File Size Uploaded
BaseHash-3.0.10.tar.gz 5.5 kB Details

Release files / BaseHash-3.0.10.tar.gz

Download URL BaseHash-3.0.10.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ed7a694ef9cdf1b8ea1b2900036de8d3f7cb7fe02cebdc4b3c5b8c80c8150267
BLAKE2b-256 checksum
How to use checksums
dcf3e06246d001e97d2d8fe81cda3385613bb3b5e01f9ba5d1469331ea7d4c0d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

3.0.10 This release

1 release file

3.0.9

2 release files

3.0.8

1 release file

3.0.7

1 release file

3.0.4

1 release file

3.0.2

3.0.1

1 release file

3.0.0

1 release file

2.2.1

1 release file

2.1.0

1 release file

2.0.2

1 release file

2.0.0

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page