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.

Tag : Linux Ubuntu
FAQ
Q
How to Choose a Modern Method password?
A
There are many different approaches to generating a strong password, but password managers and passphrases are the best. Choose the one that works for you, and then read its corresponding section further along in this article to learn how to get started.

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.
Q
how to Select a Strong Password?
A
The weakest point in any security for your online accounts is usually your password. At WordPress.com, we go to great lengths to make sure your content is secure, protected, and can’t be accessed by anyone other than you.

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.
Q
how to install password safe on ubuntu?
A
For the installation of the password safe on Ubuntu, use the following link as given below "https://www.linuxhelp.com/how-to-install-password-safe-in-ubuntu/"
Q
How to install Pwgen on Ubuntu?
A
For the installation of the Pwgen on Ubuntu, run the following command as given below "sudo apt-get install pwgen"
Q
How to encrypt and decrypt passwords?
A
For encrypt and decrypt passwords, use the following link as given below "https://www.linuxhelp.com/how-to-generate-encrypt-decrypt-random-passwords/"