Hi desertrat,
before I spend time on working out how to do it, I'd rather spend a few minutes persuading you that it's not a good idea. I know, oftentimes it's come corporate-level decision that you just have to implement, but if you have any say in it: don't. It's fine to require some classes of characters to keep people from using all too simple variations of distionary words, but

  1. four is excessive, i.e. it already limits the number of allowable passwords too much, and
  2. imposing rules on supposedly "random" distribution limits them even more, making brute-force cracking actually easier.
I'd suggest using Crypt::Cracklib or somesuch password checker on generated results and retrying if it finds the result all too easily crackable.


In reply to Re: Handling elements of an array of array references, where the function calls for an array? by mbethke
in thread Handling elements of an array of array references, where the function calls for an array? by desertrat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.