By fernando | February 4, 2009

Generating random salts from bash

From the ‘just because it can be done’ column, here comes a handy shell script to generate random salts.
So, without further ado,  here it goes:
#!/bin/bash

[ $# -eq 0 ] && {
echo “usage: salt <length>”>&2
exit
}
strings </dev/urandom | while read [...]

RSS my ohloh journal

Events

O'Reilly MySQL Conference & Expo 2010