How to generate a unique hash code for string input in android…?
It depends on what you mean: As mentioned String.hashCode() gives you a 32 bit hash code. If you want (say) a 64-bit hashcode you can easily implement it yourself. If you want a cryptographic hash of a String, the Java crypto libraries include implementations of MD5, SHA-1 and so on. You’ll typically need to turn … Read more