APG password generator
Debian comes with a useful command line utility called apg for generating passwords, based on criteria set when it is run.
You may need to install with apt install apg
Running just apg produces
ag"OnAub3 (ag-QUOTATION_MARK-On-Aub-THREE)
yissheav-Flas6 (yis-sheav-HYPHEN-Flas-SIX)
rek_OfDot6ly (rek-UNDERSCORE-Of-Dot-SIX-ly)
yorthIs0Ot; (yorth-Is-ZERO-Ot-SEMICOLON)
NapOl{aj6 (Nap-Ol-LEFT_BRACE-aj-SIX)
9Knyhik. (NINE-Kny-hik-PERIOD)
Where as using -m 16 produces a min length of 16 characters
apg -m 16
cryhejIryoatEpBi
DuVospewjopOtsye
veldIc@Ogguckeys
IalNexBeckOdjav1
drureroarAkucEdd
WinquivadLitsUk4
As a good password should be made up of
Letters (upper and lower case)
Numbers (0-9)
Other characters ( !“£$()%^&* )
Then you need to run something like
apg -M sncl -m 16 -n 5
apg -M sncl -m 16 -n 5
EgUrr1slaibzydAr
IrgiOcyibgauvKan
jemUndafMinvieHo
Fliadweuldyeebup
enyaighKuedoobr3
The program man page also gives more info and an example shell script to help with the process.
man apg
shell script
[begin]----> pwgen.sh
#!/bin/sh
/usr/local/bin/apg -m 8 -x 12 -s
[ end ]----> pwgen.sh
#linux,#debian,#shell,#password,#generation,#security,#help,#scripts,#secure,#unix,#gpl,#fsf,#freesoftware,#manpage,
#manual,#web,#internet,#links,#letters,#numbers,
#alphanumeric,#specialcharacters
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License