js-md2
A simple MD2 hash function for JavaScript supports UTF-8 encoding.
Demo
MD2 Online
Download
Compress
Uncompress
Installation
You can also install js-md2 by using Bower.
bower install js-md2
For node.js, you can use this command to install:
npm install js-md2
Usage
You could use like this:
md2('Message to hash');
If you use node.js, you should require the module first:
var md2 = require('js-md2');
If you use require.js, you should require the module first:
require(['md2.js'], function (md2) {
});
Example
md2('');
md2('The quick brown fox jumps over the lazy dog');
md2('The quick brown fox jumps over the lazy dog.');
md2('中文');
License
The project is released under the MIT license.
Contact
The project's website is located at https://github.com/emn178/js-md2
Author: Chen, Yi-Cyuan (emn178@gmail.com)