How to Generate Secure Passwords with APG

Add Your Comments

There are many ways to automatically generate passwords to keep your data safe. Previously, we have looked at a third-party generator and also at cPanel’s built-in password generator. Another type of password generator is one you can use right from the command line of your server or VPS (virutal private server). It is a small Linux/Unix program called APG (automated password generator).

This simple command line tool can quickly and easily generate random passwords. By default, APG will generate six pronounceable passwords. This means that the passwords are secure but easy to remember because you can pronounce them as words, although they are not dictionary-based words.

An example may be something like this:

Chivrov2 (Chiv-rov-TWO)

To use APG, simply type “apg” from the command line (on the console or using SSH). It will then ask you to input random characters. After typing approximately 16, press enter, and it will generate the passwords for you.

Some of the options include:

-n which allows you to specify the number of passwords generated (more or less than the default 6)

-m which specifies the minimum length of each password (default is 8)

-x the maximum password length

Because it is simple yet powerful, you can use apg to generate numerous passwords at once without much difficulty. This makes it perfect for batch password generation and also for those times when you only need one simple, secure password. For more information about apg, type “man apg” from the command line or read the online documentation.

How to Generate Secure Passwords with APG

Add Your Comments

You must be logged in to post a comment.