You are here: Re: hex to another base « PHP Programming Language « IT news, forums, messages
Re: hex to another base

Posted by Nel on 10/21/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация