Afla 5 modalitati de a genera parole in bash

Configurare noua (How To)

Situatie

Dorim generarea parolelor in bash.

Putem folosi una din urmatoarele comenzi

Solutie

Pasi de urmat

date +%s | sha256sum | base64 | head -c 32 ; echo

< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;

< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c6; echo

strings /dev/urandom | grep -o ‘[[:alnum:]]’ | head -n 30 | tr -d ‘n’; echo

openssl rand -base64 32

 

Parolele generate arata ca in poza de mai jos.

2015-12-14 11_49_49-root@localhost_~

Tip solutie

Permanent

Voteaza

(4 din 11 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?