Skip to main content

WerkzeugSecurityCLI

A CLI wrapper around

  • werkzeug.security.generate_password_hash
  • werkzeug.security.check_password_hash

for generating and checking werkzeug.security password hashes on the command line

Disclaimer!

Not associated with Werkzeug in any way! (other than using their wonderful software :D)

Examples

$ HASH=$(wzscli generate my-test-password-123)
$ echo "${HASH}"
scrypt:32768:8:1$pyMfKdIqwYxw0GOT$6d49052bdf9cffb2288d7cb198d7bed5566f284932dad0c74b3948866b1468220afd93e9aa17069c4a2403d33747e5e71981c3c552d751a0e249642b6641bac5
$ wzscli check "${HASH}" my-test-password-12
False
$ wzscli check "${HASH}" my-test-password-123
True

One can supply the password positional argument directly in the command line argv as above, or supply - to read the password from stdin using Python's getpass module as below

$ HASH=$(wzscli generate -)
> Password: # sneedy-feedy
$ wzscli check "${HASH}" -
> Password: # sneedy-feedy
True

Installing

Available on PyPI as WerkzeugSecurityCLI.

I like to use pipx to manage Python CLI utils:

$ pipx install WerkzeugSecurityCLI

Metadata

Release files for WerkzeugSecurityCLI 1.1.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 WerkzeugSecurityCLI 1.1.0
File Size Uploaded
werkzeugsecuritycli-1.1.0.tar.gz 39.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for WerkzeugSecurityCLI 1.1.0
File Interpreter ABI Platform
WerkzeugSecurityCLI-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 67.4 kB

Release files / werkzeugsecuritycli-1.1.0.tar.gz

Download URL werkzeugsecuritycli-1.1.0.tar.gz
Size 39.6 kB
Tags Source
SHA-256 checksum
How to use checksums
63fba485cbb4c90671873cea125ec2057fdfe6a3b4d764e952b9d4b86104d7e1
BLAKE2b-256 checksum
How to use checksums
749c2d37c5219571c7937b02112a9a0d7618d2f130343a5cc16fb94b27cfa06a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.7

Release files / WerkzeugSecurityCLI-1.1.0-py3-none-any.whl

Download URL WerkzeugSecurityCLI-1.1.0-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19cdb40588f2a45dfe783741a488054cc1bf48a93ae291c195a723f93b986d6a
BLAKE2b-256 checksum
How to use checksums
c6aadb8eac02a4af36257a8b55eab8036b778fdfbbf14725742854b045d1c83c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

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