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