User Tools

Site Tools


howtos:password_generator
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


howtos:password_generator [02/12/2018 21:34] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +Put this little script into you ~/.bashrc and you can run it from anywhere:
  
 +<file>
 +genpasswd() {
 + local l=$1
 +        [ "$l" == "" ] && l=20
 +      tr -dc A-Za-z0-9_ < /dev/urandom | head -c ${l} | xargs
 +}
 +</file>
 +
 +It takes one parameter which says how long a password you want:
 +
 +<code>
 +tdd@s10e-tdd:~$ genpasswd 10
 + EpVrnblbz_
 +
 +tdd@s10e-tdd:~$ 
 +</code>
 +
 +
 +
 +----
 +Source: http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
howtos/password_generator.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1