您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 
Guillaume Vincent 8f4a6855d1 add license in readme 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 4.0.4 8 年前
readme.md add license in readme 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

License

MIT © Guillaume Vincent

LessPass project