jeudi 18 juin 2015

Java, Generate random key based on time&date (Use with two programs as verification)

I have a server running java, and an android application with all of the apis i need to do this. I need to generate a significantly long string of characters that are based off of a date. I am thinking of using a random string generator with the seed method.

I would want my seed to be [MM/dd/yyyy-hh/mm] (Where its DATE - TIME) I may also want to add an extra string to that. Then, i would like to generate a string from that random seed. This way, my application can request data from my server using some dynamically changing seed. They are both linked?




Aucun commentaire:

Enregistrer un commentaire