• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to generate and check strong password in ubuntu

{{postValue.id}}

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.
Password

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


Password


So, now we will use cracklib check command. First, we test a simple password as follows.

user@linuxhelp: ~  $  echo " 123abcd"  | cracklib-check


Cracklib

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
Paste

Now, you will assure yourself that the password is strong.

Tags:
jackson
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

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/"

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 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.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Gibbson ?
How do i run both nginx and apache in same instance on centos

Hi...,

my server is based centos operating system and my webserver is already running on Apache.... i need to run both apache and nginx on same instance ... please help me to implement this concept...

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.