Ulf Dittmer wrote:Does the code need to be cryptographically secure? If not, you could just run the 16 letter string you have through something like ROT-13.
Ulf Dittmer wrote:If you already have a unique 16 letter input string, how would a "16 letter unique code" be any different? Can you give an example of both, so that we know what the result should be?
Ulf Dittmer wrote:Welcome to JavaRanch.
If the ID is already unique, then you could just append the subject to it, and truncate the result to 16 characters, no? If the result is less than 16 characters, pad it with some filler character (like spaces).