Posted by Tom on 01/03/07 21:52
"Michael Fesser" <netizen@gmx.de> wrote in message
news:rn6op2tglcg7uda14oblqpm7ck8bkefthj@4ax.com...
> .oO(Tom)
>
>>I need to convert an integer to a unique code string consisting only of
>>capital letters and numbers.
>>I also need to be able to convert it back to an integer again.
>>
>>Example:
>>
>>10 => DFG56JKG4 => 10
>
> Just curious: Why do you need that? The integer itself is unique and
> consists only of numbers ... so what's the purpose of the "encoding"?
The purpose is to use it in links.
Each code will link to a given row in a database and then show an image.
But I don't want script kiddies to fetch all images iteratively :-)
Tom
[Back to original message]
|