BASH - generate password randomly in CLI
- openssl:
openssl rand -base64 <length>
. Ex:
$ openssl rand -base64 10
SamHRPdw6uPrvg==
- with
date
command:
$ date +%s | md5sum | head -c 20 ; echo
e08ee2cdcd31cab6b9fc
echo
to create new line
Written by dangtunglam
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#