I am looking for an algorithm which creates a unique key for a string. The generated key for the string should be the same for every instance of execution of the code. I want to serialize the key and the string into a file and deserialize (binary file)it on some other platform like an android application , set top box, etc...
Can some one help me in this regards?