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 345b6f58a5 babel ES6 code пре 8 година
tests babel ES6 code пре 8 година
.gitignore simplify API for password creation пре 8 година
.npmignore version 1.0.0 on npm пре 8 година
.travis.yml version 1.0.0 on npm пре 8 година
ISSUE_TEMPLATE add issue template пре 8 година
index.js fix import error пре 8 година
license standardization of sub modules пре 8 година
package.json babel ES6 code пре 8 година
readme.md stop building lesspass/core for browser пре 8 година

readme.md

Build Status

LessPass Core

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

Requirements

  • node v4.6.x

Install

npm install lesspass

Usage

import LessPass from 'lesspass';
    
const site = 'lesspass.com';
const login = 'contact@lesspass.com';
const masterPassword = 'password';
const options = {
    counter: 1,
    length: 12,
    lowercase: true,
    uppercase: true,
    numbers: true,
    symbols: true
};
LessPass.encryptLogin(login, masterPassword)
    .then(encryptedLogin => {
        var generatedPassword = LessPass.renderPassword(encryptedLogin, site, options);
        console.log(generatedPassword); //azYS7,olOL2]
    });

see tests/api.tests.js for more examples

Tests

npm test

see LessPass project