java - How to generate a unique key for a string content? -
i looking algorithm creates unique key string. generated key string should same every instance of execution of code. want serialize key , string file , deserialize (binary file)it on other platform android application , set top box, etc...
can 1 me in regards?
you can use hashcode() function.
http://docs.oracle.com/javase/7/docs/api/java/lang/string.html#hashcode()
Comments
Post a Comment