選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 
Guillaume Vincent 997b8a5d81 rename file that is not a test 8年前
example remove ES6 code 8年前
lib add phantomjs to fix error on travis 8年前
src add generatePassword v2 method 8年前
tests rename file that is not a test 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 generatePassword v2 method 8年前
package.json add render Password tests 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