Posted by Justin Koivisto on 10/06/66 11:40
Nel wrote:
> I am trying to find a php solution to encoding an md5 hex string into
> another base.
>
> Using ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890 as a
> characters for a base 62
> i.e.
> A = 1
> a = 27
> 0 = 62
> 00 = 3844
> 000 = 238328
>
> This should make the hex string much shorter.
>
> 1. Does anyone understand what I'm trying to do here?
> 2. Has this wheel already been invented?
> 3. Any ideas about the most efficient way to encode and decode this kind of
> thing?
http://www.pgregg.com/projects/php/base_conversion/base_conversion.php
However, the order that is used on that for the characters are:
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
(which seems more logical than having the digits at the end)
--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
[Back to original message]
|