#!/bin/bash
# Echo three passwords
cat /dev/urandom| tr -dc 'a-zA-Z0-9-_!@#$%+'|fold -w 28| head -n 3

# Echo one password and put it in clipboard
# Requirements: apt-get install -y xclip
cat /dev/urandom| tr -dc 'a-zA-Z0-9-_!@#$%+'|fold -w 28| head -n 1|xclip"

openssl rand 60 | openssl base64 -A

# another method (suitable for alerta)
LC_CTYPE=C tr -dc A-Za-z0-9_\!\@\#\$\%\^\&\*\(\)-+= < /dev/urandom | head -c 32 && echo