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 d66a896524 add .editorconfig and auto format пре 7 година
dist Migrate from Browserify to Webpack пре 7 година
example add .editorconfig and auto format пре 7 година
src add .editorconfig and auto format пре 7 година
tests add .editorconfig and auto format пре 7 година
.editorconfig add .editorconfig and auto format пре 7 година
.gitignore upgrade to node 6 LTS пре 8 година
.travis.yml upgrade to node 6 LTS пре 8 година
LICENSE change license from MIT to GNU GPLv3 пре 8 година
package.json Add husky to prevent commit without green tests пре 7 година
readme.md fix 404 link пре 7 година
webpack.config.js add .editorconfig and auto format пре 7 година

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

const site = 'lesspass.com';
const login = 'contact@lesspass.com';
const masterPassword = 'password';
const passwordProfile = {
    lowercase: true,
    uppercase: true,
    numbers: true,
    symbols: true,
    length: 16,
    counter: 1,
    version: 2
};
LessPass.generatePassword(site, login, masterPassword, passwordProfile)
    .then(function (generatedPassword) {
        assert.equal(generatedPassword, '\\g-A1-.OHEwrXjT#');
        console.log('generated password ok');
    });

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