Just how to create solid passwords in Linux?

I ask yourself just how I can create solid passwords on Linux (for both regular and also admin users) and also if there specify programs to do that.

0
2019-05-06 01:08:55
Source Share
Answers: 6

I make use of a non arbitrary, yet is differed sufficient for all strike objectives ... master password, and also last pass to create various other passwords. Below is just how I create the master password.

echo -n "some seed" |  openssl dgst -binary -sha1 | base64 | sed -e 's/.\{4\}/& /g'

and also the result

H1sI Wpbj JE2P CdVJ A1qb 9B/e u7M= 

currently simply select a few of the areas and also make a password, reposition them, leave some out, add a personality or 2 to make it like arbitrary. As long as you can remember your seed you can restore this, and also recoup your password (as long as you do not make way too many alterations)

0
2019-05-19 20:40:36
Source

I would certainly additionally add KeePassX which offers you the alternative of making use of system worsening to create solid passwords with a couple of wonderful attributes - all making use of GUI. It additionally offers you the alternative of handling your passwords, and also conserving them to an encrypted documents.

This is just how KPX password generator user interface resembles:

0
2019-05-19 20:27:30
Source

pwgen is a remarkable little cli device that allow is you define a variety of parameters to set intricacy, personality courses variety of passwords to create, size, etc

0
2019-05-19 18:45:44
Source

pwgen is just one of several programs for creating passwords

0
2019-05-08 13:33:47
Source

I created this little manuscript a couple of years earlier and also have actually been utilizing it since. If anything, it's an intriguing misuse of printf and also makes use of a wonderful attribute of BASH that I however hardly ever see in manuscripts : typeset.

#!/usr/bin/env bash
# Released into public domain
# Aaron Bockover, 2005
# http://abock.org

typeset -i length; length=$1
typeset -i rounds; rounds=$2
[ $rounds -lt 1 ] && rounds=1
[ $length -lt 1 ] && {
    echo "Usage: $0 <length> [<rounds>]" 2>/dev/null; exit 1;
}
for ((i=0; i < $rounds; i++)); do
    for ((j=0; j < $length; j++)); do
        set=$(($RANDOM % 20))
        if   [ $set -le 6 ];  then o=65; l=26; # 35% uppercase
        elif [ $set -le 13 ]; then o=97; l=26; # 35% lowercase
        elif [ $set -le 17 ]; then o=48; l=10; # 20% numeric
        elif [ $set -le 18 ]; then o=58; l=7;  # 10% symbolic
        elif [ $set -le 19 ]; then o=33; l=15; fi
        ord=$(($o + $RANDOM % $l))
        printf \\$(($ord / 64 * 100 + $ord % 64 / 8 * 10 + $ord % 8))
    done
    echo
done
0
2019-05-08 13:27:00
Source

Personally, I favor not to make use of password generator as password created are really tough to bear in mind, yet one mobile remedy is to make use of /dev/urandom

Creating arbitrary passwords which has no unique personalities, is 10 personalities lengthy :

$ cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 10` 
dyxJRKldvp
.

This functions by ordering bytes from/ dev/urandom, removing the ones that do not fit the pattern defined in the tr command, and also restricting it to 10 personalities with head.

Developing arbitrary passwords which has unique personalities, is 10 personalities lengthy :

$ cat /dev/urandom | tr -dc '[email protected]#$%^&*()_+{}|:<>?=' | fold -w 10 | grep -i '[[email protected]#$%^&*()_+{}|:<>?=]' | head -n 1
[email protected]
.

This makes use of a somewhat various strategy after tr gets rid of undesirable bytes, as the suggestion is to compel it to contend the very least one unique personality. This functions by utilizing the fold command to cover the line right into teams of 10, after that making use of grep to bring just lines which contain an unique personality. head after that brings the first password that fulfills the needs.

0
2019-05-08 10:32:03
Source