Skip to content

Instantly share code, notes, and snippets.

@wqli78
wqli78 / gist:1330293
Created November 1, 2011 10:45
node.js CRC32
var crypto = require('crypto');
/**
* Calculates the hash/checksum of a string. Default algorithm is MD5.
*
* @param {String} str
* @param {String} algorithm
* @return {String} checksum
* @api public
*/