I’d like to know is there a string hashing function that would produce identical results both in JavaScript and PHP, just to avoid text transmissions in cases when some textual data coming from the client side needs to be verified on the server side for being the same as expected?
Share
Yes, See this md5 hashing function for JS. Here is sha1.
You’d find more in http://PHPjs.org