I am in need of an algorithm or logic which allows to generate a token(alpha numeric) from a list of tokens. That Generated token must allows us to verify whether the given token is part of it or not.
Example: Consider a scenario you have 4 tokens like the below
Input Code : NFU122JKMO,MUE4UJ83RT,MA783FHNZS,ODNJU345KN.(assume)
I need to generate a single code which is a combination of all the above.The generated code must be alpha numeric like follows
Generated Code : NIDU8934DF(assume).
Now, i need to validate the input code is a subset of generated code or not.
So it must return a Boolean value like true or false.
To be specific,I need to generate a code which have the information of all the input tokens.
I have searched the encryption and decryption algorithms,that will not suit my needs. Please,Share your ideas and algorithm for approach.
Thanks in Advance.