|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
[](https://coveralls.io/r/emn178/js-md5?branch=master)
|
|
|
|
|
[](https://nodei.co/npm/js-md5/)
|
|
|
|
|
|
|
|
|
|
A simple MD5 hash function for JavaScript supports UTF-8 encoding.
|
|
|
|
|
A simple and fast MD5 hash function for JavaScript supports UTF-8 encoding.
|
|
|
|
|
|
|
|
|
|
## Demo
|
|
|
|
|
[MD5 Online](http://emn178.github.io/online-tools/md5.html)
|
|
|
|
@ -13,6 +13,10 @@ A simple MD5 hash function for JavaScript supports UTF-8 encoding.
|
|
|
|
|
[Compress](https://raw.github.com/emn178/js-md5/master/build/md5.min.js)
|
|
|
|
|
[Uncompress](https://raw.github.com/emn178/js-md5/master/src/md5.js)
|
|
|
|
|
|
|
|
|
|
## Benchmark
|
|
|
|
|
[jsPerf Benchmark](https://jsperf.app/jonuhi)
|
|
|
|
|
[File Benchmark](https://github.com/emn178/js-md5/issues/19)
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
You can also install js-md5 by using Bower.
|
|
|
|
|
|
|
|
|
@ -47,6 +51,12 @@ If you use node.js, you should require the module first:
|
|
|
|
|
var md5 = require('js-md5');
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### TypeScript
|
|
|
|
|
If you use TypeScript, you can import like this:
|
|
|
|
|
```TypeScript
|
|
|
|
|
import { md5 } from 'js-md5';
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## RequireJS
|
|
|
|
|
It supports AMD:
|
|
|
|
|
```JavaScript
|
|
|
|
|