2024-11-26 07:18:44 +01:00
|
|
|
# pw -- Password generator
|
2024-11-26 07:05:28 +01:00
|
|
|
|
|
|
|
## Quick start
|
|
|
|
|
|
|
|
### Build
|
|
|
|
|
2024-11-26 07:18:44 +01:00
|
|
|
#### Dependencies
|
|
|
|
|
|
|
|
First build & install
|
|
|
|
[libscnumerics](https://git.bobpolis.com/bob/libscnumerics).
|
|
|
|
|
|
|
|
Then:
|
|
|
|
|
2024-11-26 07:05:28 +01:00
|
|
|
`make`
|
|
|
|
|
|
|
|
### Install
|
|
|
|
|
|
|
|
`sudo make install`
|
|
|
|
|
2024-11-26 07:18:44 +01:00
|
|
|
Or, on OpenBSD:
|
2024-11-26 07:05:28 +01:00
|
|
|
|
|
|
|
`doas gmake install`
|
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
|
|
|
`pw`
|
|
|
|
|
2024-11-26 07:53:11 +01:00
|
|
|
Generate password using default settings: at lease one digit, at least one lower
|
|
|
|
case letter, at least one upper case letter, at least one symbol from the set
|
2024-11-26 07:54:28 +01:00
|
|
|
`_-=+<>,.!@#$%^&*`, and a length of 24 characters.
|
2024-11-26 07:05:28 +01:00
|
|
|
|
2024-11-26 07:18:44 +01:00
|
|
|
## Examples
|
2024-11-26 07:05:28 +01:00
|
|
|
|
2024-11-26 07:53:11 +01:00
|
|
|
Generate a password with at least one lower case letter, at least two upper case
|
|
|
|
letters, at least three digits, at least four symbols, and a length of 20
|
|
|
|
characters:
|
2024-11-26 07:05:28 +01:00
|
|
|
|
2024-11-26 07:53:11 +01:00
|
|
|
`pw -l 1 -u 2 -d 3 -s 4 -c 20`
|
2024-11-26 07:05:28 +01:00
|
|
|
|
2024-11-26 07:18:44 +01:00
|
|
|
or, more compact:
|
2024-11-26 07:05:28 +01:00
|
|
|
|
2024-11-26 07:53:11 +01:00
|
|
|
`pw -l1 -u2 -d3 -s4 -c20`
|
2024-11-26 07:18:44 +01:00
|
|
|
|
2024-11-26 07:54:28 +01:00
|
|
|
The same, but now with symbols chosen from the set `+-=@`:
|
2024-11-26 07:05:28 +01:00
|
|
|
|
2024-11-26 07:53:11 +01:00
|
|
|
`pw -l1 -u2 -d3 -s4 -c20 -S '+-=@'`
|
2024-11-26 07:18:44 +01:00
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
|
|
|
Full documentation is in the man page:
|
|
|
|
|
|
|
|
`man pw`
|