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 [...]
