i'd like to generate strong passwords from terminal using a bash alias for "openssl" which copies the results of
openssl rand -base64 16
directly to clipboard.
i've tried many derivations of the below alias but haven't yet "cracked the code":
alias pass-gen='openssl rand -base64 ........
so far the only output i've received after modifying the above alias with different combinations of pipes and "pbcopy" is this:
Usage: rand [options] num
where options are
-out file - write to file
-engine e - use engine e, possibly a hardware device.
-rand file:file:... - seed PRNG from files
-base64 - base64 encode output
-hex - hex encode output
any advice/hints would be greatly appreciated.