Showing posts with label hash. Show all posts
Showing posts with label hash. Show all posts

Javascript crc32 that matches PHP crc32 and works well with unicode

Many programmers including me are using hashes to solve different problems, and when we are using hash function in web application we want client-side and server-sire values of hash for the same value to match. So, trying to solve this problem for javascript implementation of CRC32 algorithm and PHP implementation of the same algorithm I got this article and the code that I have included to the article.

Javascript hash functions to convert string into integer hash.

A collection of hash functions implemented in Javascript. Functions are useful for browser-side string processing, but as far as server side scripting in Javascript becoming more and more popular, these functions may be helpful for server side scripting too. if you just want to have a good hash function, and cannot wait, djb2 is one of the best string hash functions i know.