25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 1.1 KiB

8 년 전
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [![Build Status](https://travis-ci.org/lesspass/core.svg?branch=master)](https://travis-ci.org/lesspass/core)
  2. # LessPass Core
  3. core library for LessPass password manager in javascript used to generate unique password.
  4. ## Requirements
  5. - node v4.6.x
  6. ## Install
  7. npm install lesspass
  8. ## Usage
  9. import LessPass from 'lesspass';
  10. const site = 'lesspass.com';
  11. const login = 'contact@lesspass.com';
  12. const masterPassword = 'password';
  13. const options = {
  14. counter: 1,
  15. length: 12,
  16. lowercase: true,
  17. uppercase: true,
  18. numbers: true,
  19. symbols: true
  20. };
  21. LessPass.encryptLogin(login, masterPassword)
  22. .then(encryptedLogin => {
  23. var generatedPassword = LessPass.renderPassword(encryptedLogin, site, options);
  24. console.log(generatedPassword); //azYS7,olOL2]
  25. });
  26. see [tests/api.tests.js](tests/api.tests.js) for more examples
  27. ## Tests
  28. npm test
  29. ## License
  30. MIT © [Guillaume Vincent](http://guillaumevincent.com)
  31. ## [LessPass project](https://github.com/lesspass/lesspass)