Password Generator

-2

Task:
Make a program that generate a 24-digit password.

Rule:

  • None of the character can be repeated more than once
  • Must include at least one upcase, one locase, one number, five special character.
  • The answer which got most votes win.

SPECIAL CHARACTER LIST: `~!@#$%^&*()_+-={}|[]\:";'<>?,./ or other

Jamie

Posted 2014-02-02T11:50:34.427

Reputation: 166

Question was closed 2014-02-02T13:24:05.757

Looks like I edited the post at the same time as you. Did you change "most votes" into "50 votes the earliest"? If yes, then I think my edit has undone that. Also, if you really did that edit, then I don't think that's a good criteria. It is also possible that an answer doesn't get 50 upvotes at all. – ProgramFOX – 2014-02-02T11:53:54.717

Yes, @ProgramFOX. – Jamie – 2014-02-02T12:01:03.370

But I Added This:None of the character can be repeated more than once – Jamie – 2014-02-02T12:03:37.417

Answers

0

bash

You might need to tune A-M by increasing or decreasing the range to meet specs.

ls -al ~ | grep -o . | tr -d A-M | sort | uniq | head -n 24 | xargs | sed 's/ //g'

E.g:

$ ls -al ~ | grep -o . | tr -d A-M | sort | uniq | head -n 24 | xargs | sed 's/ //g'

+-.0123456789:@OPSTU_a

user15259

Posted 2014-02-02T11:50:34.427

Reputation: