Changes

Jump to navigation Jump to search
740 bytes added ,  17:29, 7 October 2014
m
add generating strong random password
Line 621: Line 621:     
  perl -e "use esmith::util;esmith::util::setUserPassword( 'username','pass"'!'"word');"
 
  perl -e "use esmith::util;esmith::util::setUserPassword( 'username','pass"'!'"word');"
 +
 +
===Generating strong random password===
 +
Security should not be taken lightly and password for e.g. databases, connections etc. need to be long and strong. One way of generating a strong random password is:
 +
< /dev/urandom tr -dc '_A-Z-a-z-0-9!@+[](){}~<>*%^&#+=/$:;,?' | head -c${1:-50};echo;
 +
This will generate a 50 character long random password whereby the characters are selected from the above given string _A-Z-a-z-0-9!@+[](){}~<>*%^&#+=/$:;,?
 +
 +
 +
One could also store the generated password to a file or to a db key:
 +
< /dev/urandom tr -dc '_A-Z-a-z-0-9!@+[](){}~<>*%^&#+=/$:;,?' | head -c${1:-50} > mypassword.txt
 +
 +
config set MyStrongPassword `< /dev/urandom tr -dc '_A-Z-a-z-0-9!@+[](){}~<>*%^&#+=/$:;,?' | head -c${1:-50};echo;`
    
===Signalling events : Signal-event===
 
===Signalling events : Signal-event===

Navigation menu