https://github.com/andreaspitzer/md5-jkmyers
Joseph K. Myers' high performance (in fact, the fastest) MD5 implementation for npm, Bower, Component, etc.
https://github.com/andreaspitzer/md5-jkmyers
Last synced: 6 months ago
JSON representation
Joseph K. Myers' high performance (in fact, the fastest) MD5 implementation for npm, Bower, Component, etc.
- Host: GitHub
- URL: https://github.com/andreaspitzer/md5-jkmyers
- Owner: andreaspitzer
- Created: 2013-12-28T02:23:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-11-18T07:49:34.000Z (over 7 years ago)
- Last Synced: 2025-06-28T19:14:04.931Z (12 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 8
- Watchers: 1
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# md5-jkmyers
Joseph K. Myers' high performance (in fact, the fastest) MD5 implementation for npm, Bower, Component, etc.
[](http://coderwall.com/andreaspizsa)
[](http://gruntjs.com/)
This MD5 implementation was written by [Joseph K. Myers](http://www.myersdaily.org/joseph/javascript/md5-text.html) and is currently the fastest according to [jsperf](http://jsperf.com/md5-shootout). I've wrapped it up as a universal module ([UMD](https://github.com/umdjs/umd)) for easy consumption with [Bower](https://github.com/bower/bower), [Component](https://github.com/component/component), npm, [RequireJS](https://github.com/jrburke/requirejs) ([AMD](https://github.com/amdjs/amdjs-api/wiki/AMD)), [CommonJS](http://wiki.commonjs.org/wiki/CommonJS), etc...
## Usage
The module exports a single function that takes one parameter:
```javascript
md5(String)
```
### On the Client
#### Bower
bower install md5-jkmyers
#### Component
component install md5-jkmyers
Then in your `html`, do
```html
console.log(md5('hello, world!'));
```
### On the Server
#### node.js
Please be aware that node already comes with MD5 built in - see [here](http://stackoverflow.com/a/11869589/199263). Having said that, `md5-jkmyers` might still be a good and fast alternative (please feel free to contribute perfomance testst):
npm install md5-jkmyers
Then in your code do
md5 = require('md5-jkmyers')
md5('hello, world!')
## Contributors
- Joseph K. Myers (http://www.myersdaily.org/joseph/)
- Andreas Pizsa (https://github.com/andreaspizsa)
## Licenses
### Joseph Myers
Joseph Myers does not specify a particular license for his work.
### Andreas Pizsa
MIT
[](https://bitdeli.com/free "Bitdeli Badge")