A hashing utility built from Drupal7 specification.
Free software: MIT license
Installation
pip install drupal-hash-utility
Documentation
To use the project:
import drupal_hash_utility
drash = DrupalHashUtility()
# Read the Help Docs
print(help(drash))
# Generate Drupal7 Hash
password = 'P@ssw0rd'
encoded = drash.encode(password)
# Verify Password Against Hash
drash.verify(password, encoded)
# Get Hash Summary
drash.summary(encoded)
Development
To run the all tests run:
tox
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
|---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |
Changelog
0.3.3 (2019-08-15)
First release on PyPI.
1.0.0 (2019-08-16)
Added cli.
Release files for drupal-hash-utility 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| drupal-hash-utility-1.0.0.tar.gz | 9.2 kB | Details |
Release files / drupal-hash-utility-1.0.0.tar.gz
| Download URL | drupal-hash-utility-1.0.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48f1d605df30be3b8a58a72738364c01e90354c19b65ae1ad08e16d57dbb0f46
|
|
BLAKE2b-256 checksum How to use checksums |
034205586a8a8e228416681d3738c0323d44f1aaa2c4f25b4e42ceaf2319ff26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3
|