i am creating a application were i have to create a hashed/encoded code for each id in databse table. id's length is about 7 digits like 16,66,189. No i want to convert this into small encoded value like 'aty' lenght of about 3-4 digits. Which is mathematically equilant to its's numeric value. So that i can convert for numeric value to encoded value and vice versa.
Any sugestion how this can be achived. I tried many ways but all of them gives a long hashed/encoded value which defeats the purpose of creating small encoded value.