-2
\$\begingroup\$

This question already has an answer here:

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

\$\endgroup\$

marked as duplicate by Howard, ProgramFOX, ace_HongKongIndependence, mniip, Hasturkun Feb 2 '14 at 13:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • \$\begingroup\$ 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. \$\endgroup\$ – ProgramFOX Feb 2 '14 at 11:53
  • \$\begingroup\$ Yes, @ProgramFOX. \$\endgroup\$ – Jamie Feb 2 '14 at 12:01
  • \$\begingroup\$ But I Added This:None of the character can be repeated more than once \$\endgroup\$ – Jamie Feb 2 '14 at 12:03
0
\$\begingroup\$

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
\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.