A hashing utility built from Drupal7 specification.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for drupal-hash-utility-0.3.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec04a892222c482894646230373ebda483b2ed4a5c61062cb2b1b9b4ee44ef35 |
|
MD5 | 2bf0127e05bedb8682389c7127c7fb66 |
|
BLAKE2b-256 | aae295926b7fb3723088f2eab003b74527c275697cd08d915e8c34535bc8aee8 |