Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been given a list of strings that are actually numeric identifiers; these can autoincremented but I am trying to determine what the actually numbers are, as they contain alphanumeric characters. Can anyone advise on how to do this?

eg. x774b4n, x7741zs, x774ahm, x774cb0

Thanks.

What I have tried:

online searches and books. Also tried online converting tools but just getting started so not familiar with coding texts.
Posted
Updated 2-May-19 11:10am
Comments
[no name] 2-May-19 16:44pm    
The only "constant" seems to be that they start with "x774". For anyone to assume anything else based on the limited info provide is nonsense.
Member 4673156 2-May-19 16:52pm    
Actually, I have been given about 1000 and the only constant is x7...., which does not mean that there aren't x6, x5 etc. I just am trying to determine what the letters are besides x so I can just create more ids by incrementing the ones I have.

Those (almost) look like hex values.
Except...not quite

x7741zs -- there is no hex z, n, s or m

generally leading 0x means hex value, like : 0xCC0010.
You'd probably have to have more clues about the data to determine something more.
How can they be incremented? That should provide a clue.
 
Share this answer
 
Comments
Member 4673156 2-May-19 16:54pm    
Thanks for responding; I was told that they are supposed to be unique ids for users on an api; so by incrementing the number randomly like x77436u to x77437u you can obtain far more id's. the issue I don't know what the letters are, like 'u'
That's not an encoding at all. There isn't anyone who's going to be able to tell you what the rules are for "auto incrementing" the values unless they are the ones who came up with the scheme.
 
Share this answer
 
Quote:
eg. x774b4n, x7741zs, x774ahm, x774cb0

This smells like some base 32 or base 64 encoding.
But with so little hints, it can be about anything.
Base32 - Wikipedia[^]
Base64 - Wikipedia[^]
 
Share this answer
 
Comments
Member 4673156 2-May-19 17:12pm    
Thanks everyone for your comments and responses. I will try and gather more info but I think it maybe just speculation but someone else also mentioned base 32. Will review.
[no name] 2-May-19 19:39pm    
It can't be BASE32 because it contains the letter Z. Base32 is typically encoded as 0-9 and letters A through V.
Patrice T 2-May-19 19:52pm    
It can because programmer is free to choose any way he wants to encode data.
Look at this link: Base32 - Wikipedia[^]
[no name] 2-May-19 19:57pm    
Well by following what you just said... it could also be Base16 with "programmer chosen character encoding"

Anyway I am willing to bet money that it's BASE36 encoded. The BASE36 encodings and above are the only systems that contain the letter Z.
[no name] 3-May-19 4:21am    
By the way... the Wikipedia article you are linking to is referring to the base32 transfer encoding... not the duotrigesimal number system.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900