Skip to content

p-j/meteor-crypto-md5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MD5 message digest cryptographic hash function algorithm from CryptoJS, packaged for Meteor.

Build Status

Dependency

Install

Inside your project folder run

$ meteor add jparker:crypto-md5

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

CryptoJS.MD5(message)

If jparker: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'

MD5 HMAC of a string, given a passphrase:

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

See also

The CryptoJS project lives at https://code.google.com/p/crypto-js/ and the documentation for MD5 is at https://code.google.com/p/crypto-js/#MD5.

Related packages

Credits

Based on Dan Dascalescu's and Tom Coleman's work

About

MD5 algorithm from CryptoJS repackaged for meteor-crypto

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •