WerkzeugSecurityCLI
A CLI wrapper around
werkzeug.security.generate_password_hashwerkzeug.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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| werkzeugsecuritycli-1.1.0.tar.gz | 39.6 kB | Without provenance | Details for werkzeugsecuritycli-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| WerkzeugSecurityCLI-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for WerkzeugSecurityCLI-1.1.0-py3-none-any.whl |
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
|
Security for WerkzeugSecurityCLI 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.