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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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