You're viewing a comment by Marco Bodemeijer and its responses.

Marco Bodemeijer Permalink
January 28, 2013, 11:10

Example 2: Generate a random 8 character password

In most environments the passwords have to consist of 6 characters with at least 1 capital and ending with 2 numbers (e.g. abCdef12). Is there a one-liner for that too?

Comment Responses

January 30, 2013, 23:39


perl -le 'print @{[map { ("a".."z", "A".."Z")[rand 52] } 1..6]}, int rand 10, int rand 10'

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "floppy_303": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.