Hello,
I want to encode one string to 16 character string which is composite from different numeric digits as below (A, B, C etc..) and it should be decodable also so get all the information back.
For example :
A = any number between 0 to 99999 (21923)
B = any number between 0 to 99999 (12045)
C = any number between 0 to 99999 (29433)
D = any number between 0 to 99999 (12003)
E = any number between 0 to 99999 (234)
F = any number between 0 to 99999 (189)
.
.
J = any number between 0 to 99999 (189)
This can be possible upto J. but G, H, I and J are optional.
Z = A#B#C#D#E#F
Z = 21923#12045#29433#12003#234#189
Now by doing any encode operation on string Z, result string want to maintain upto 16 characters and it should be decodable so able to get the above all part (eg. A, B, C etc...) same as it is assigned.
Also Result string should be contain only 0-9 and capital character of Alphabet (A-Z)
I have tried to convert each part (eg. A, B C etc .) to Hex number and conctate it but I am not able to restrict the length upto 16 character which is reverse decodable to get original information.
so can any one help me or give hint to achieve this thing.
Thanks,