Skip to main content

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.

1.0.0 (2019-08-16)

  • Added cli.

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

drupal-hash-utility-1.0.0.tar.gz (9.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page