生成32位随机密码,只包含字母和数字

生成32位随机密码,只包含字母和数字:
echo `openssl rand -base64 50  | tr -dc A-Z-a-z-0-9 | head -c${1:-32}`
date +%s | sha256sum | base64 | head -c 32

 

posted @ 2022-07-15 14:44  捧花大王  阅读(1660)  评论(0)    收藏  举报