JWK - Jackall's IT Wiki

Sécurité, Système, Réseau

Outils pour utilisateurs

Outils du site


apg

Automated Password Generator (APG)

APG is a command line tool to generate random password. It also includes some useful functions like password spelling or character class restrictions.

How it works

First contact

Once installed, just type apg to get a list of six password

 
fenrir ~ # apg
 RynsIavrau
 crienconFo
 NitdecHid
 OfevBith
 yovUckird
 EjyacDoo

By default , apg generates 6 pronouncable passwords without mandatory character class (Uppercase, lower case etc…) default invocation is similar to :

apg -a 0 -M sncl -n 6 -x 10 -m 8

Example

Generate 7 characters password with at least 1 special characters and one number

 apg -m 7 -t -l  -M SN
 2obcos~ (TWO-ob-cos-TILDE) TWO-oscar-bravo-charlie-oscar-sierra-TILDE
 vof@okkag8 (vof-AT_SIGN-ok-kag-EIGHT) victor-oscar-foxtrot-AT_SIGN-oscar-kilo-kilo-alfa-golf-EIGHT
 oyb[[osh9 (oyb-LEFT_BRACKET-osh-NINE) oscar-yankee-bravo-LEFT_BRACKET-oscar-sierra-hotel-NINE
 ]]kofilnek9 (RIGHT_BRACKET-kof-il-nek-NINE) RIGHT_BRACKET-kilo-oscar-foxtrot-india-lima-november-echo-kilo-NINE
 nab.orosh7 (nab-PERIOD-or-osh-SEVEN) november-alfa-bravo-PERIOD-oscar-romeo-oscar-sierra-hotel-SEVEN
 bamph7of! (bamph-SEVEN-of-EXCLAMATION_POINT) bravo-alfa-mike-papa-hotel-SEVEN-oscar-foxtrot-EXCLAMATION_POINT

-t et -l ask apg to spell the password .

You can also ask apg to test the password against cracklib:

 apg -m 7 -t -l  -M SN -k
 naycs]]obs2 (naycs-RIGHT_BRACKET-obs-TWO) november-alfa-yankee-charlie-sierra-RIGHT_BRACKET-oscar-bravo-sierra-TWO
 doxdug8oc_ (dox-dug-EIGHT-oc-UNDERSCORE) delta-oscar-x_ray-delta-uniform-golf-EIGHT-oscar-charlie-UNDERSCORE
 wryg|dreg6 (wryg-VERTICAL_BAR-dreg-SIX) whiskey-romeo-yankee-golf-VERTICAL_BAR-delta-romeo-echo-golf-SIX
 ly`ojob1 (ly-GRAVE-oj-ob-ONE) lima-yankee-GRAVE-oscar-juliett-oscar-bravo-ONE
 magg+5dreu (magg-PLUS_SIGN-FIVE-dreu) mike-alfa-golf-golf-PLUS_SIGN-FIVE-delta-romeo-echo-uniform
 9gryaj{ (NINE-gryaj-LEFT_BRACE) NINE-golf-romeo-yankee-alfa-juliett-LEFT_BRACE

search?q=security%20Password%20Soft%20Linux%20Fedora%20Debien%20EN&btnI=lucky

apg.txt · Dernière modification: 2018/02/18 16:01 (modification externe)