Skip to content

oortcloud/meteor-crypto-md5

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

MD5 algorithm from CryptoJS repackaged for meteor-crypto

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%