troubleshooting Question

Hash/encode a numeric id like 12567889 to aphabatic characters like 'aty'

Avatar of SaiRajeshShashi
SaiRajeshShashi asked on
C#Regular ExpressionsAlgorithms
7 Comments2 Solutions491 ViewsLast Modified:
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.

Jaime Olivares
Software Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2008

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 2 Answers and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros