Create a random token in Javascript based on user details

后端 未结 6 809
醉酒成梦
醉酒成梦 2021-02-01 15:38

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

6条回答
  •  北海茫月
    2021-02-01 15:54

    Checkout crypto.js project. Its a collection of cryptographic algorithms. The project has separate js files for each hashing algorithms.

提交回复
热议问题