Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 920 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 920 Bytes

MD5 message digest cryptographic hash function algorithm from CryptoJS, packaged for Meteor. Depends on crypto-base.

Install

Inside your project folder run

$ mrt add crypto-md5

The following method under the CryptoJS namespace will now be available on both the client and server:

  • CryptoJS.MD5(message)

If crypto-hmac is also installed, the following method will also be available:

  • CryptoJS.HmacMD5(message, key)

Usage

MD5 digest of a string:

CryptoJS.MD5('Message').toString()
// '4c2a8fe7eaf24721cc7a9f0175115bd4'

MD51 HMAC of a string, given a passphrase:

CryptoJS.HmacMD5('Message', 'Secret Passphrase').toString()
// '5e03d0c1b42ef0b7e61fb333f3993949'