Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 
Guillaume Vincent 908d6568ba Add husky to prevent commit without green tests il y a 7 ans
dist Migrate from Browserify to Webpack il y a 7 ans
example update documentation with v2 example il y a 8 ans
src move index into src folder il y a 8 ans
tests update documentation with v2 example il y a 8 ans
.gitignore upgrade to node 6 LTS il y a 8 ans
.travis.yml upgrade to node 6 LTS il y a 8 ans
LICENSE change license from MIT to GNU GPLv3 il y a 8 ans
package.json Add husky to prevent commit without green tests il y a 7 ans
readme.md fix 404 link il y a 7 ans
webpack.config.js Migrate from Browserify to Webpack il y a 7 ans

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