LinuxCommandLibrary

apg

Generate random passwords

TLDR

Generate random passwords

$ apg
copy
Generate with specific length
$ apg -m [16] -x [20]
copy
Generate pronounceable passwords
$ apg -a 0
copy
Generate random character passwords
$ apg -a 1
copy
Generate with specific character set
$ apg -M SNCL
copy
Generate without ambiguous characters
$ apg -E "0O1lI"
copy

SYNOPSIS

apg [-a algorithm] [-m min] [-x max] [-M mode] [-E chars] [options]

DESCRIPTION

apg (Automated Password Generator) creates random passwords using either a pronounceable password algorithm (based on phoneme sequences) or completely random characters.
Pronounceable passwords are easier to remember but potentially less secure. Random passwords offer maximum entropy but are harder to memorize.

PARAMETERS

-a algorithm

Algorithm: 0=pronounceable, 1=random
-m length
Minimum password length
-x length
Maximum password length
-n count
Number of passwords to generate
-M mode
Character classes: S=special, N=numeric, C=capital, L=lowercase
-E chars
Exclude specific characters
-c file
Check against dictionary file
-q
Quiet mode (passwords only)
-s
Prompt for random seed
-l
Spell pronounceable passwords

CAVEATS

Pronounceable passwords may have patterns that reduce entropy. For high-security applications, use random mode with sufficient length. Output goes to terminal; pipe to clip for clipboard.

HISTORY

apg was created by Adel I. Mirzazhanov, implementing both random and pronounceable password generation algorithms for Unix systems.

SEE ALSO

pwgen(1), openssl(1), mkpasswd(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community