Bash Random String Code Example


Example 1: cli generate random string

#purely random 12 character string openssl rand 12  # more useful random 12 character strings openssl rand -base64 12  # random hex-code sequence openssl rand -hex 12

Example 2: random string linux

tr -dc A-Za-z0-9 </dev/urandom | head -c 64 > random_text.txt

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?