Skip to main content

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

Metadata

Release files for hashpw 2.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hashpw 2.6.0
File Size Uploaded
hashpw-2.6.0.tar.gz 24.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hashpw 2.6.0
File Interpreter ABI Platform
hashpw-2.6.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 50.7 kB

Release files / hashpw-2.6.0.tar.gz

Download URL hashpw-2.6.0.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8108179a902fc827dd00670e22662936697804ebf0ff343de94582e4eb498fe8
BLAKE2b-256 checksum
How to use checksums
2a9eb3e84035115f80e8a032936eea8c9a37b096d21fe5762f89604f55147922
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release files / hashpw-2.6.0-py2.py3-none-any.whl

Download URL hashpw-2.6.0-py2.py3-none-any.whl
Size 25.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
edbba1a4feba6a21717178f5aca385990383a3eaf9654278c234cc69391bd491
BLAKE2b-256 checksum
How to use checksums
0a6746525069e2177709a4e133c416a3d7a6ddbc29e02b7ed214b9e1c226c753
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release history Release notifications | RSS feed

This release

2.6.0 This release

2 release files

2.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page