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