Dieses Repository beinhaltet HTML- und Javascript Code zur einer NotizenWebApp auf Basis von Web Storage. Zudem sind Mocha/Chai Tests im Browser enthalten. https://meinenotizen.netlify.app/
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 2.5KB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # apache-crypt
  2. [Node.js](http://nodejs.org/) package for Apache style password encryption using crypt(3).
  3. [![build](https://github.com/http-auth/apache-crypt/workflows/build/badge.svg)](https://github.com/http-auth/apache-crypt/actions?query=workflow%3Abuild)
  4. ## Installation
  5. Via git (or downloaded tarball):
  6. ```bash
  7. $ git clone git://github.com/http-auth/apache-crypt.git
  8. ```
  9. Via [npm](http://npmjs.org/):
  10. ```bash
  11. $ npm install apache-crypt
  12. ```
  13. ## Usage
  14. ```javascript
  15. const crypt = require("apache-crypt");
  16. // Encrypting password using auto-generated 2 char salt.
  17. const encryptedPassword = crypt("mypass");
  18. // Should print true.
  19. console.log(crypt("mypass", encryptedPassword) == encryptedPassword);
  20. // Should print false.
  21. console.log(crypt("notmypass", encryptedPassword) == encryptedPassword);
  22. ```
  23. ## Running tests
  24. It uses [mocha](https://mochajs.org/), so just run following command in package directory:
  25. ```bash
  26. $ npm test
  27. ```
  28. ## Issues
  29. You can find list of issues using **[this link](http://github.com/http-auth/apache-crypt/issues)**.
  30. ## Requirements
  31. - **[Node.js](http://nodejs.org)** - Event-driven I/O server-side JavaScript environment based on V8.
  32. - **[npm](http://npmjs.org)** - Package manager. Installs, publishes and manages node programs.
  33. ## Dependencies
  34. - **[unix-crypt-td-js](https://github.com/TimDumol/unix-crypt-td-js/)** - Javascript implementation of the Unix crypt(3) DES-based hash.
  35. ## License
  36. The MIT License (MIT)
  37. Copyright (c) Gevorg Harutyunyan
  38. Permission is hereby granted, free of charge, to any person obtaining a copy of
  39. this software and associated documentation files (the "Software"), to deal in
  40. the Software without restriction, including without limitation the rights to
  41. use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  42. the Software, and to permit persons to whom the Software is furnished to do so,
  43. subject to the following conditions:
  44. The above copyright notice and this permission notice shall be included in all
  45. copies or substantial portions of the Software.
  46. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  47. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  48. FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  49. COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  50. IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  51. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.