#password #hash #generator

bin+lib hardpass

Password and shadow hash generator

1 unstable release

0.1.0 Apr 26, 2023

#264 in #password

MIT/Apache

8KB
83 lines

hardpass

Easily generate random passwords of a given length, with accomanying sha-crypt hash.

Installation

cargo install hardpass

Usage

$ hardpass # default length is 30
{"plaintext":"ec5kdvqohdxNTRtS5GUUcsKgtE0uig","sha512":"$6$vINA2v96dp7xEn9L$mmnGVTuUiJf7ChxUq97lEKR2jXfI7tTH83SMI/T0dnVrHol9QDpOEp8kn1EKXRxRBxRSHncukCrbSSl7RpMaw."}
$ hardpass 15
{"plaintext":"n1gMiXa5oEAJkV0","sha512":"$6$lUHUWuYqrDncH0j5$BLmWjWj.yxuqOffII17RqRORzu.oIpaIt9sqaAh1XsC8JonTSwEUWwZ/3jtEoFfNOFzHEL5ru02fjH8GGpBAA0"}

License: MIT OR Apache-2.0


lib.rs:

Easily generate random passwords of a given length, with accomanying sha-crypt hash.

Installation

cargo install hardpass

Usage

$ hardpass # default length is 30
{"plaintext":"ec5kdvqohdxNTRtS5GUUcsKgtE0uig","sha512":"$6$vINA2v96dp7xEn9L$mmnGVTuUiJf7ChxUq97lEKR2jXfI7tTH83SMI/T0dnVrHol9QDpOEp8kn1EKXRxRBxRSHncukCrbSSl7RpMaw."}
$ hardpass 15
{"plaintext":"n1gMiXa5oEAJkV0","sha512":"$6$lUHUWuYqrDncH0j5$BLmWjWj.yxuqOffII17RqRORzu.oIpaIt9sqaAh1XsC8JonTSwEUWwZ/3jtEoFfNOFzHEL5ru02fjH8GGpBAA0"}

Dependencies

~2.3–3.5MB
~65K SLoC