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

Uploaded Source

File details

Details for the file drupal-hash-utility-1.0.0.tar.gz.

File metadata

  • Download URL: drupal-hash-utility-1.0.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for drupal-hash-utility-1.0.0.tar.gz
Algorithm Hash digest
SHA256 48f1d605df30be3b8a58a72738364c01e90354c19b65ae1ad08e16d57dbb0f46
MD5 d063ff6f843fcc0e7e48ac7269080dac
BLAKE2b-256 034205586a8a8e228416681d3738c0323d44f1aaa2c4f25b4e42ceaf2319ff26

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page