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.
But if someone else is able to guess or retrieve your password, they bypass almost every security measure we have because WordPress.com will see this person as you. They could then make any changes they wish to your WordPress.com blog or account including the deletion of your content.
Best: Use a Password Manager – A password manager is a software application on your computer or mobile device that generates very strong passwords and stores them in a secure database. You use a single passphrase to access the database, and then the manager will automatically enter your username and password into a website’s login form for you.