You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

4 years ago
  1. # md5.js
  2. [![NPM Package](https://img.shields.io/npm/v/md5.js.svg?style=flat-square)](https://www.npmjs.org/package/md5.js)
  3. [![Build Status](https://img.shields.io/travis/crypto-browserify/md5.js.svg?branch=master&style=flat-square)](https://travis-ci.org/crypto-browserify/md5.js)
  4. [![Dependency status](https://img.shields.io/david/crypto-browserify/md5.js.svg?style=flat-square)](https://david-dm.org/crypto-browserify/md5.js#info=dependencies)
  5. [![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
  6. Node style `md5` on pure JavaScript.
  7. From [NIST SP 800-131A][1]: *md5 is no longer acceptable where collision resistance is required such as digital signatures.*
  8. ## Example
  9. ```js
  10. var MD5 = require('md5.js')
  11. console.log(new MD5().update('42').digest('hex'))
  12. // => a1d0c6e83f027327d8461063f4ac58a6
  13. var md5stream = new MD5()
  14. md5stream.end('42')
  15. console.log(md5stream.read().toString('hex'))
  16. // => a1d0c6e83f027327d8461063f4ac58a6
  17. ```
  18. ## LICENSE [MIT](LICENSE)
  19. [1]: http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar1.pdf