I want to create a random string (token) which can be used to identify a user whilst avoiding any potential conflicts with any other users\' tokens.
What I was thinking
Checkout crypto.js project. Its a collection of cryptographic algorithms. The project has separate js files for each hashing algorithms.