thanks for a very quick response.
an example of my unique ID is this :VARFSCWPTBLK****SADDS00
so it can basically contain digits (0 - 9) alphabets (A-Z and a-z) or asterisk (*).
Now, what I want the algorithm to do is to compact this ID and give me a compacted unique string for this unique ID, so that I could put that compacted string on my equipment and then later on when I need to lend the equipment out I'd just type the string (from the equipment) in and use the decoding algorithm to get the same ID i.e. VARFSCWPTBLK****SADDS00 back.
From then on I'll just extract the info from the DB by using my ID.
I hope that helps clarify what I need. If you have more questions please feel free to let me know.
Thanks again.