Monthly Archive: April 2013

Apr 05

Generate Random Preshared Key With “dd”

State of the art, so elegant!: ?View Code BASH1 dd if=/dev/random bs=32 count=1 2>/dev/null | od -t x1 | sed ‘$d;s/^[[:xdigit:]]* //;s/ //g’ | tr -d ‘\n’; echo Source: http://www.linuxquestions.org/questions/linux-newbie-8/can-dd-be-used-to-clone-just-the-data-on-a-partition-595285/