Is shortening the number worth the hassle of dealing with similiar characters (one vs lowercase L, zero vs uppercase o, etc) and similar sounding characters ('v' vs 'b', 'm' vs 'n', etc).

btw, here's the savings you'd get:

1 base10 digit = 1 base64 digit = 0% saving
2 base10 digits = 2 base64 digits = 0% saving
3 base10 digits = 2 base64 digits = 25% saving
4 base10 digits = 3 base64 digits = 25% saving
5 base10 digits = 3 base64 digits = 40% saving
6 base10 digits = 4 base64 digits = 33% saving
7 base10 digits = 4 base64 digits = 43% saving
8 base10 digits = 5 base64 digits = 38% saving
9 base10 digits = 5 base64 digits = 44% saving
10 base10 digits = 6 base64 digits = 40% saving
11 base10 digits = 7 base64 digits = 36% saving
12 base10 digits = 7 base64 digits = 42% saving

And since you mentioned MD5... Hashing algorithms (e.g. MD5) are lossful. I suspect you need to be able to retrieve the unencoded digits, so hashing algorithms won't help you here.


In reply to Re: Shorter ID Codes by ikegami
in thread Shorter ID Codes by Micz

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.