September 20, 2013

Nice script to generate a password of 12 character length (on Linux)


#!/bin/sh
# Make a 72-bit password (12 characters, 6 bits per char)
dd if=/dev/urandom count=1 2>/dev/null | base64 | head -1 | cut -c4-15

No comments:

Post a Comment