passt
The "good-enough" password generator ยฏ\(ใ)/ยฏ
passt
is a "zero-dependency" random string generator that can be used to generate passwords in terminals or in your application.
- Zero Dependencies?
- Supported operating systems
- Usage: library
- Usage: cli
- Limitations
- Why the name "passt"
- License
Zero Dependencies?
passt
only depends on Rust standard library, namely:
std::fs::File
std::io::Read
and additionally for the CLI part:
std::env
std::process::exit
and no other crates.
The only other "dependency" is /dev/urandom
from which random ints are read to generate random values. So "zero-dependency" may be a bit of a stretch. ๐ฌ
Supported operating systems
*nix
All GNU/Linux / *nix systems should be supported as long as they have /dev/urandom
. Only tested on MacOS and Ubuntu.
Windows Support
For Windows file:/dev/urandom
is read but this is not yet tested. It may or may not work. ๐คทโโ๏ธ Help with Windows support is appreciated!
Usage: library
Using the standard character set
This means possible characters are:
a-zA-Z0-9
if no special chars are includeda-zA-Z0-9
and!ยง$%&/()=?ยด-_.,:;#'+*<>ยฐ^
if special chars are included
use passt:Passt;
Specify custom character set
This allows you to use a different set of possible characters.
Usage: cli
Install
Install with cargo
:
Then use as described below
)
No special characters
Include special characters
Custom character set Even with emojis!
Create multiple passwords
Limitations
Because the random extraction of characters is weak it is better to have duplicates in the character set. See the following example:
With two characters, the last char is always taken. For randomness, add more chars to the set.
Why the name "passt"
"passt" is a German word you can say if something is "okay". Since this tool is "okay" in generating random strings that can be used for passwords I found the name fitting.
License
passt
is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.