選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

readme.md 1.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [![Build Status](https://travis-ci.org/lesspass/core.svg?branch=master)](https://travis-ci.org/lesspass/core)
  2. > core library for LessPass password manager in javascript used to generate unique password.
  3. ## Requirements
  4. - node LTS v6
  5. ## Install
  6. npm install lesspass
  7. ## Usage
  8. const site = 'lesspass.com';
  9. const login = 'contact@lesspass.com';
  10. const masterPassword = 'password';
  11. const passwordProfile = {
  12. lowercase: true,
  13. uppercase: true,
  14. numbers: true,
  15. symbols: true,
  16. length: 16,
  17. counter: 1,
  18. version: 2
  19. };
  20. LessPass.generatePassword(site, login, masterPassword, passwordProfile)
  21. .then(function (generatedPassword) {
  22. assert.equal(generatedPassword, '\\g-A1-.OHEwrXjT#');
  23. console.log('generated password ok');
  24. });
  25. see [tests/api.tests.js](tests/v2/api.tests.js) for more examples
  26. ## Tests
  27. npm test
  28. ## License
  29. This project is licensed under the terms of the GNU GPLv3.
  30. ## Issues
  31. report issues on [LessPass project](https://github.com/lesspass/lesspass/issues)