#!/bin/bash # # Simple password generator. # # Get a portion of /dev/urandom, and serialize as base64 head -c ${1:-20} /dev/urandom | base64