Crates.io | djpass |
lib.rs | djpass |
version | 1.4.0 |
source | src |
created_at | 2016-01-03 12:52:29.082455 |
updated_at | 2023-10-03 07:04:34.841083 |
description | A command-line tool to generate and verify passwords used in Django project. |
homepage | |
repository | https://github.com/racum/djpass |
max_upload_size | |
id | 3818 |
size | 32,852 |
A command-line tool to generate and verify passwords used in Django Project.
You can compile from source, or install via cargo
(requires version 0.6.0 or higher):
$ cargo install djpass
If you run it without arguments it will ask for a password:
$ djpass
Password: [password]
Hash: pbkdf2_sha256$24000$...
Passing the password as a single argument will return the hash:
$ djpass hello
Hash: pbkdf2_sha256$24000$...
You can also specify the algorithm used:
$ djpass hello -a sha1
Hash: sha1$hzPiRIKYykm8$23...
Algorithms:
PBKDF2
(default)PBKDF2SHA1
Argon2
Scrypt
BCryptSHA256
BCrypt
SHA1
MD5
UnsaltedSHA1
UnsaltedMD5
Crypt
The algorithm argument is case-insensitive.
$ djpass hello 'sha1$hzPiRIKYykm8$23...'
Password ok.
If you pass an algorithm during verification it will be ignored.
Djpass is released under the 3-Clause BSD License.
tl;dr: "free to use as long as you credit me".