I need to convert strings to some form of hash. In anyway, is this possible in Javascript/jQuery.
I did some Google searches but they all seem to be referring to the # character.
I'm not utilizing a server-side language so I can't do it that way.
I need to convert strings to some form of hash. In anyway, is this possible in Javascript/jQuery. I did some Google searches but they all seem to be referring to the # character. I'm not utilizing a server-side language so I can't do it that way. |
|||
|
Described here. |
|||||||||||||||||||||
|
if anyone is interested, here is an improved ( faster ) version, which will fail on older browsers who lack the
|
|||||
|
I needed a similar function (but different) to generate a unique-ish ID based on the username and current time. So:
Produces:
|
|||
|