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.
 
 
 
 
 
 
Guillaume Vincent 076d74f7d8 add getSetOfCharacters v2 method преди 8 години
example remove ES6 code преди 8 години
lib add phantomjs to fix error on travis преди 8 години
src add getSetOfCharacters v2 method преди 8 години
tests add getSetOfCharacters v2 method преди 8 години
.gitignore upgrade to node 6 LTS преди 8 години
.travis.yml upgrade to node 6 LTS преди 8 години
LICENSE change license from MIT to GNU GPLv3 преди 8 години
gulpfile.js remove ES6 code преди 8 години
index.js add getSetOfCharacters v2 method преди 8 години
package.json add calcEntropy v2 method преди 8 години
readme.md update documentation преди 8 години
webcrypto.js merge webcrypto преди 8 години

readme.md

Build Status

core library for LessPass password manager in javascript used to generate unique password.

Requirements

  • node LTS v6

Install

npm install lesspass

Usage

var LessPass = require('lesspass');

var site = 'lesspass.com';
var login = 'contact@lesspass.com';
var masterPassword = 'password';
var options = {
    counter: 1,
    length: 12,
    lowercase: true,
    uppercase: true,
    numbers: true,
    symbols: true,
    template: 'vcVCns'
};

LessPass.encryptLogin(login, masterPassword).then(encryptedLogin => {
    LessPass.renderPassword(encryptedLogin, site, options).then(generatedPassword => {
         console.log(generatedPassword); //azYS7,olOL2]
    });
});

see tests/api.tests.js for more examples

Tests

npm test

License

This project is licensed under the terms of the GNU GPLv3.

Issues

report issues on LessPass project