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

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -