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.

пре 8 година
пре 8 година
пре 8 година
пре 8 година
пре 8 година
пре 8 година
пре 8 година
пре 8 година
12345678910111213141516171819
  1. var lesspass = require('../lib/index');
  2. var assert = require('assert');
  3. var site = 'lesspass.com';
  4. var login = 'contact@lesspass.com';
  5. var masterPassword = 'password';
  6. var options = {
  7. counter: 1,
  8. length: 12,
  9. lowercase: true,
  10. uppercase: true,
  11. numbers: true,
  12. symbols: true
  13. };
  14. lesspass.encryptLogin(login, masterPassword).then(function (encryptedLogin) {
  15. var generatedPassword = lesspass.deriveEncryptedLogin(encryptedLogin, site, options);
  16. assert(generatedPassword, 'azYS7,olOL2]');
  17. });