6 releases

Uses new Rust 2021

0.2.4 Feb 3, 2022
0.2.3 Jan 28, 2022
0.1.2 Jan 5, 2022
0.0.4 Jan 3, 2022

#597 in Cryptography

35 downloads per month

MIT license

23KB
526 lines

randompass

CI CD test coverage crates.io docker pulls LoC

A simple static password generator. Generated passwords are 20 characters, lower and uppercase and contain special characters by default.

Why?

I got frustrated with generating passwords which met the required complexity.

There are a few implementations around, but their licensing meant they cannot be used in a professional setting.

Moreover, they require explicit flags to enable a specific complication (i.e.: special chars, uppercase); randompass has them enabled by default and the user can disable them instead.

Finally, they do not guarantee that the required complexity has been met (i.e.: the password might not contain a required complication).

Usage

Building from source
cargo install randompass
Using precompiled binaries

Precompiled binaries are available for multiple architectures in Releases.

randompass

For a specific length of, say 32, use:

randompass --length 32

For full options, run:

randompass --help

Docker

aarch64 and amd64 dockers are available.

Run the following command to pull the image and just generate a random password.

docker run --rm mihaigalos/randompass

Similar work

pass-rs, randpas, randompassword.

Dependencies

~2MB
~34K SLoC