生成密码(返回的第一行是明文,第二行是密文)
PASSWORD=$(base64 < /dev/urandom | head -c8); echo "$PASSWORD"; echo -n "$PASSWORD" | sha256sum | tr -d '-'
kbcIc48j
1f8d0b27fa60a6aa73e05b8a0c8e348619f85ce765f7864e9853c1613377abce
PASSWORD=$(base64 < /dev/urandom | head -c8); echo "$PASSWORD"; echo -n "$PASSWORD" | sha256sum | tr -d '-'
kbcIc48j
1f8d0b27fa60a6aa73e05b8a0c8e348619f85ce765f7864e9853c1613377abce