I have different unique strings in the same format. The string looks like this axf25!j&809>-11~dc and I want to get unique integer value from this string.
axf25!j&809>-11~dc
You could just use String.hashCode() (e.g. mystring.hashCode()) to give you a degree of uniqueness but you must ensure you can handle collisions.
String.hashCode()
mystring.hashCode()