Universal password hash generator and verifier
Project description
HashPW
This is a Python program that prompts for a password and prints the hash. Also has a verify mode that confirms whether or not a provided hash matches a typed password.
This command generates a wide variety of password hashes. Sensible use of exceptions handle most error conditions.
Run hashpw --help for info.
Supported algorithms (hash type identifiers highlighted):
- bcrypt: Portable PHP password hashing framework, a.k.a. Phpass (
$P$) - phpBB3 bcrypt (
$H$) - Blowfish
- Unix schemes: Crypt (two character salt), MD5 (
$1$), blowfish ($2a$), SHA-256 ($5$), SHA-512 ($6$) - Apache: SHA1 (
{SHA}), MD5 ($apr1$) - MySql: SHA1 (
*), Old - Basic MD5
- SSHA
- Django: PBKDF2
Bugs
- When supplying a salt (not a full hash) in verify mode, get "ext-des hashing does not appear to be supported on this platform"
TO-DO
- Support Drupal 7's SHA-512-based secure hash (hash type identifier = "$S$")
- Support generic Password-Based Key Derivation Function 2
- http://csrc.nist.gov/publications/nistpubs/800-132/nist-sp800-132.pdf
- $pdkdf2$ (SHA-1)
- $pdkdf2-sha256$ (SHA-256)
- $pdkdf2-sha512$ (SHA-512)
- Support scrypt https://en.wikipedia.org/wiki/Scrypt
- Option to generate/recognise simple hashes (e.g. BasicMD5, OldPassword) with prefixes
- Accept password on standard input (without confirmation)
- Support "doveadm pw" encoding scheme suffixes (.b64, .base64 and .hex); see http://wiki2.dovecot.org/Authentication/PasswordSchemes
- Support Argon2i password hashing algorithm: https://wiki.php.net/rfc/argon2_password_hash
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hashpw-2.6.0.tar.gz.
File metadata
- Download URL: hashpw-2.6.0.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8108179a902fc827dd00670e22662936697804ebf0ff343de94582e4eb498fe8
|
|
| MD5 |
1d7fdef810d3292bbba7335e0e529203
|
|
| BLAKE2b-256 |
2a9eb3e84035115f80e8a032936eea8c9a37b096d21fe5762f89604f55147922
|
File details
Details for the file hashpw-2.6.0-py2.py3-none-any.whl.
File metadata
- Download URL: hashpw-2.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edbba1a4feba6a21717178f5aca385990383a3eaf9654278c234cc69391bd491
|
|
| MD5 |
0315d0308536819c943ab4789ab4eee5
|
|
| BLAKE2b-256 |
0a6746525069e2177709a4e133c416a3d7a6ddbc29e02b7ed214b9e1c226c753
|