136
rated 0 times
[
140]
[
4]
/ answers: 1 / hits: 39752
/ 14 Years ago, thu, february 24, 2011, 12:00:00
I'd like to be able to create unique tokens* for users based on a hashed string. I know I could, for example, use a md5() library but as the purpose is not cryptographic I was wondering if there was anything I could use out of the box. Are there any one-way hashing functions available in native JavaScript?
*I realize these won't be strictly unique. I'm ok with a small chance of hashing collision.
More From » hash