全部博文(1159)
分类: LINUX
2011-02-28 18:12:09
CODE:
date +%s | sha256sum | base64 | head -c 32 ; echo
|
CODE:
< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;
|
CODE:
openssl rand -base64 32
|
CODE:
tr -cd ‘[:alnum:]‘ < /dev/urandom | fold -w30 | head -n1
|
CODE:
strings /dev/urandom | grep -o ‘[[:alnum:]]’ | head -n 30 | tr -d ‘\n’; echo
|
CODE:
< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c6
|
CODE:
dd if=/dev/urandom bs=1 count=32 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev
|
CODE:
|
CODE:
randpw(){ < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-16};echo;}
|
CODE:
date | md5sum
|