Home > blogpost > Random password in bash

Random password in bash

August 10th, 2009 Leave a comment Go to comments

With /dev/urandom you can generate some nice random passwords. Very usefull in scripts :-)
dd if=/dev/urandom bs=1 count=1024 status=noxfer 2> /dev/null | strings | tr -d [:space:] | tr -d [:punct:] | dd bs=1 count=20 status=noxfer 2> /dev/null

Tags:
  1. No comments yet.
  1. No trackbacks yet.