Anonymous Monk,
As others have already pointed you in the right direction. I just want to point out that using lower case, upper case, and digits for all 10 characters , there are

839,299,365,868,340,224 possibilities.

If you do not know exactly how many characters out of the 10 are used, it gets even uglier.

  • 1 = 62
  • 2 = 622 = 3,844 + 62 = 3,906
  • 3 = 623 = 238,328 + 3,906 = 242,234
  • 4 = 624 = 14,776,336 + 242,234 = 15,018,570
  • 5 = 625 = 916,132,832 + 15,018,570 = 931,151,402
  • 6 = 626 = 56,800,235,584 + 931,151,402 = 57,731,386,986
  • 7 = 627 = 3,521,614,606,208 + 57,731,386,986 = 3,579,345,993,194
  • 8 = 628 = 218,340,105,584,896 + 3,579,345,993,194 = 221,919,451,578,090
  • 9 = 629 = 13,537,086,546,263,552 + 221,919,451,578,090 = 13,759,005,997,841,642

    And finally, the worst case senario is that it ends up being the very last combination you try out of a 10 character string: 853,058,371,866,181,866

    I doubt this is the best way to go about it. Usually there is a way to reset it to a factory default, a super password, or some such thing - check with the vendor.

    Cheers - L~R

    Update: As I was typing this and doing some calculations dws put my sentiment into far fewer, but more potent words.

    Update 2: I added more number variations to show how complex the problem really is.


    In reply to Re: How do I generate a sequential string? by Limbic~Region
    in thread How do I generate a sequential string? by Anonymous Monk

    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.