Password generator command – 16 bit password

| May 13, 2011

Write a script and copy the file to /usr/local/bin

#vi passgen

#!/usr/bin/php -q

echo substr(base64_encode(sha1(microtime()."-".srand())),0,16)."\n";

?>

#chmod +x passgen

Example
[root@expertslogin]# genpass
BcHkOTNiZWI4G2Zj

Tags: , ,

Category: Tips for linux

Comments are closed.