I wanted to generate a unique hash code for a string in put in android. Is there any predefined library is there or we have to generate manually. Please any body if knows pl
You can use this code for generating has code for a given string.
int hash = 7; for (int i = 0; i < strlen; i++) { hash = hash*31 + charAt(i); }