Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

README.md 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # MD5
  2. [![build status](https://secure.travis-ci.org/pvorb/node-md5.png)](http://travis-ci.org/pvorb/node-md5) [![info badge](https://img.shields.io/npm/dt/md5.svg)](http://npm-stat.com/charts.html?package=md5)
  3. a JavaScript function for hashing messages with MD5.
  4. node-md5 is being sponsored by the following tool; please help to support us by taking a look and signing up to a free trial
  5. <a href="https://tracking.gitads.io/?repo=node-md5"><img src="https://images.gitads.io/node-md5" alt="GitAds"/></a>
  6. ## Installation
  7. You can use this package on the server side as well as the client side.
  8. ### [Node.js](http://nodejs.org/):
  9. ~~~
  10. npm install md5
  11. ~~~
  12. ## API
  13. ~~~ javascript
  14. md5(message)
  15. ~~~
  16. * `message` -- `String`, `Buffer`, `Array` or `Uint8Array`
  17. * returns `String`
  18. ## Usage
  19. ~~~ javascript
  20. var md5 = require('md5');
  21. console.log(md5('message'));
  22. ~~~
  23. This will print the following
  24. ~~~
  25. 78e731027d8fd50ed642340b7c9a63b3
  26. ~~~
  27. It supports buffers, too
  28. ~~~ javascript
  29. var fs = require('fs');
  30. var md5 = require('md5');
  31. fs.readFile('example.txt', function(err, buf) {
  32. console.log(md5(buf));
  33. });
  34. ~~~
  35. ## Versions
  36. Before version 2.0.0 there were two packages called md5 on npm, one lowercase,
  37. one uppercase (the one you're looking at). As of version 2.0.0, all new versions
  38. of this module will go to lowercase [md5](https://www.npmjs.com/package/md5) on
  39. npm. To use the correct version, users of this module will have to change their
  40. code from `require('MD5')` to `require('md5')` if they want to use versions >=
  41. 2.0.0.
  42. ## Bugs and Issues
  43. If you encounter any bugs or issues, feel free to open an issue at
  44. [github](https://github.com/pvorb/node-md5/issues).
  45. ## Credits
  46. This package is based on the work of Jeff Mott, who did a pure JS implementation
  47. of the MD5 algorithm that was published by Ronald L. Rivest in 1991. I needed a
  48. npm package of the algorithm, so I used Jeff’s implementation for this package.
  49. The original implementation can be found in the
  50. [CryptoJS](http://code.google.com/p/crypto-js/) project.
  51. ## License
  52. ~~~
  53. Copyright © 2011-2015, Paul Vorbach.
  54. Copyright © 2009, Jeff Mott.
  55. All rights reserved.
  56. Redistribution and use in source and binary forms, with or without modification,
  57. are permitted provided that the following conditions are met:
  58. * Redistributions of source code must retain the above copyright notice, this
  59. list of conditions and the following disclaimer.
  60. * Redistributions in binary form must reproduce the above copyright notice, this
  61. list of conditions and the following disclaimer in the documentation and/or
  62. other materials provided with the distribution.
  63. * Neither the name Crypto-JS nor the names of its contributors may be used to
  64. endorse or promote products derived from this software without specific prior
  65. written permission.
  66. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  67. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  68. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  69. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
  70. ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  71. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  72. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  73. ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  74. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  75. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  76. ~~~