To generate a strong password, use the following snippet. It will produce a ten-position alpha-numeric (with some limited punctuation) that should work with most systems that require a password. echo `date +%Y%m%d%H%M%S` | pwhash -m | cut -b25-34 Note that ten positions is the minimum you should use; if the system you are using supports it, try for 14 or more. The math is simple: taking just the case sensitive alpha-numeric, there are 62 values (26 lower, 26 upper, 10 digits). At 10 positions, there are 839299365868340224 possible choices; in theory, that would be very hard to break. Just adding 4 more positions, the 12401769434657526912139264 possible choices would take centuries to break even at 1 trillion hashes a second.