I am Hack Sparrow
Captain of the Internets.

How to Generate md5, sha1, sha512, sha256 Checksum Hashes in Node.js

Checksums in Node.js are generated using the crypto library's createHash() method. The usage format is this: [code] crypto.createHash(algo) [/code] Where algo is the algorithm of your choice - md5, sha1, sha512, sha256 etc. The algorithms supported are entirely dependent on the OpenSSL version on your machine. Here are some examples of generating hashes for string inputs: [code] var crypto = require('crypto'); var md5 = crypto.createHash(' ...