Posted by Nel on 11/18/90 11:40
"Justin Koivisto" <justin@koivi.com> wrote in message
news:U_2dnXUTjtpCbGTenZ2dnUVZ_tmdnZ2d@onvoy.com...
> 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
Perfect Justin ;)
Thanks
Nel
Navigation:
[Reply to this message]
|