#!/bin/bash
l=$1
[ "$l" == "" ] && l=32
openssl rand -base64 $l | cut -c-$l