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.
Treat the strings as a base 0x110000 representation of some integer (you can get away with a smaller base if you know the range of characters is limited). Convert to a BigInteger.