Bob Polis 8aa1ea4df7 Bumped version to 2.0.2
Upgraded to latest project structure
2025-01-08 13:21:00 +01:00
2024-10-08 06:01:45 +02:00
2025-01-08 13:21:00 +01:00
2024-10-08 06:01:45 +02:00
2024-10-08 06:02:15 +02:00
2024-11-22 15:34:21 +01:00
2025-01-08 13:21:00 +01:00
2025-01-08 13:21:00 +01:00
2024-11-26 07:58:12 +01:00

pw -- Password generator

A highly configurable password generator for Linux, macOS, and OpenBSD, written in C++.

Quick start

Build

Dependencies

First build & install libscnumerics.

Then:

make

Install

sudo make install

Or, on OpenBSD:

doas gmake install

Usage

pw

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 _-=+<>,.!@#$%^&*, and a length of 24 characters.

Examples

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:

pw -l 1 -u 2 -d 3 -s 4 -c 20

or, more compact:

pw -l1 -u2 -d3 -s4 -c20

The same, but now with symbols chosen from the set +-=@:

pw -l1 -u2 -d3 -s4 -c20 -S '+-=@'

Documentation

Full documentation is in the man page:

man pw

Description
Password generator. Highly configurable.
Readme 74 KiB
Languages
Makefile 52.7%
C++ 47.3%