How to generate and check strong password in ubuntu
To generate and check strong password in Ubuntu
A strong password should be composed of a mix of alphabet characters, numbers, and symbols. A second requirement is to not use known words, birth dates or names because you would be vulnerable to dictionary attacks. In this tutorial, we will talk about how to generate and check your passwords.
Generate a strong password
First, let us run the following command to generate a 32 character long random password.
user@linuxhelp: ~ $ gpg --gen-random --armor 1 32
You will get a random password as shown in the terminal screenshot given below.

Now that we have a password, it’ s time to find out if it passes the test: is your password strong enough? Even if someone uses a brute-force attack? Let us see by running the following command.
user@linuxhelp: ~ $ apt-get install libcrack2

So, now we will use cracklib check command. First, we test a simple password as follows.
user@linuxhelp: ~ $ echo " 123abcd" | cracklib-check

So, it’ s time to check if it was a good idea to generate two passwords! In this case, we will use a different way of writing the command, so the passwords will not be stored in shell history.
user@linuxhelp: ~ $ cat|cracklib-check
Now, after a password is generated, you need to paste the generated password

Now, you will assure yourself that the password is strong.
Comments ( 0 )
No comments available