QUOTE(Amadeus @ 12 Sep, 2006 - 05:33 PM)

QUOTE(DeeViLiSh @ 12 Sep, 2006 - 12:00 PM)

I'm not sure if I perfectly understood your question/project but it seems you want to input a string and output it as a number.
Please clarify and we'll help you out.
Does it need encryption or simply coverting letters or numbers?
You may wish to research hashing vs. encryption...there is a difference. the user is asking about hash algorithms, not encryption methodology.
DeeViLiSh, everybody else - thanks for the post. There is no encryption. I just need a function that will hash character to numbers and back. This process has to be 100% consistent (always return the same number) and reversible. For example, if this function hashes "John Q. Public" into 343444, the only value returned back from this 343444 will be "John Q. Public".

That is all. Please let me know if you can help.