Skip to content

mzch/mkpasswd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mkpasswd for Debian system

This tiny script to create password candidates is for Debian System that doesn't have mkpasswd command natively. Perhaps using this script can be used more easily than building mkpasswd command from source codes.

Usage

mkpasswd [-s|--simbol] [length] [number of password candidates]

  • When using option -s or --simbol, password candidates includes some simbol characters. If you wish to edit excluding simbols, set environment variable MKPWD_EXCHR. MKPWD_EXCHR default value is !&*()[]{}<>?|/\;

  • When not giving number of password candidates, default is 1.

  • When not giving length, default is 42.

  • I recomend you to install pwgen package using sudo apt-get install pwgen. It presents better passwords.

  • When not installed pwgen, mkpasswd uses /dev/uramdom instead and prints an alert message, Please install "pwgen" to make it more convenient.

Examples

  1. $ mkpasswd
    ofiecooCh7reikofaixiK9xaej9cogai9ahchiepha

  2. $ mkpasswd 24
    UochohriPohzie4yoh9Ep3wa

  3. $ mkpasswd 24 4
    jaiXiy7hiuHoh4uqui9yie7g
    Evij3iesh9ahnah9zooHai9e
    aihoVaepieniting7eoboe9r
    Aixo7roh7ANahz7okeaphire

  4. $ mkpasswd 24 -s,
    $ mkpasswd -s 24,
    $ mkpasswd --simbol 24 or
    $ mkpasswd 24 --simbol
    vq^TkzY@1,GpFhZw6$iMG:uJ

License

MIT License.

About

Create password candidates for Debian System that doesn't have mkpasswd natively.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages