Skip to content

Instantly share code, notes, and snippets.

View KiNgMaR's full-sized avatar

Ingmar Runge KiNgMaR

  • Europe
View GitHub Profile
@KiNgMaR
KiNgMaR / gist:1926569
Created February 27, 2012 19:46 — forked from nanha/gist:1385106
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
*/