Contents

Shell


  • Take your favorite terminal, and do simply this trick:
1
pwgen -sync 40 1
  • There you go, you have a secured random password containing 40 characters that you can store into your password manager.

  • Then create an alias for it in your .bashrc:

1
alias secure-password="pwgen -sync 40 1"

Explanations:

Utility

  • pwgen: utility used to generate pronounceable passwords
  • How to use:
1
pwgen [ OPTION ] [ password length ] [ number of password generated ]

Options

  • option -s: generate completely random, hard-to-memorize passwords.
  • option -y: include at least one special character.
  • option -n: include numbers.
  • option -c: include at least one capital letter in the password.
  • 40: number of characters
  • 1: number of password generated

KeepassXC

  • Use a tool like keepassXC to store locally your password on a password manager. Then you can choose a way to version it, for example git or nextcloud.