Adler-32 hashing algorithm for Node.js