Oh, to generate a unique key from the servlet is easy:
1. Make a string with random and unique information. For example, you can combine the current time and user name in the string.
2. Use any of the secure hash algorithm (e.g., SHA1) in the
Java crypto API to generate a hash for that string.
The hash is your unique ID for this user, this download.