Wednesday, 22 February 2012

One-liners

One liner for random password generation
dd if=/dev/random count=1 bs=8 2>/dev/null | base64 | sed -e 's/=*$//'

1 comment:

  1. Follow /dev/random by using the following command:

    cat /dev/random | od

    Octal dump is a hex viewer for the command line which will stop the binary output from /dev/random from screwing up your terminal. The tty can be reset by running "stty sane".

    Notice how the random device only outputs data when the mouse is moving.

    ReplyDelete