The MD5 module implements support for the MD5 cryptographic hash function.
$ component install anchorjs/md5 $ volo add anchorjs/md5 Create hash digests of data.
var md5sum = md5.createHash(); md5sum.update('Hello'); md5sum.update('World'); var d = md5sum.digest('hex');Create cryptographic hmac content.
var md5hmac = md5.createHmac('key'); md5hmac.update('Hello'); md5hmac.update('World'); var d = md5hmac.digest('hex');This module uses the AMD format. To include in component builds, use component-amd:
component build -u component-amd To run tests in a browser, execute the Make target for the desired browser:
$ make test-chrome $ make test-firefox $ make test-safari Headless tests can be executed directly from a terminal:
$ make test-phantomjs Copyright (c) 2012-2013 Jared Hanson <http://jaredhanson.net/>