您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 
Guillaume Vincent c77b44e93c Use webcrypto only for browser 7 年前
dist Build minified js file 7 年前
example Build minified js file 7 年前
src Use webcrypto only for browser 7 年前
test Use webcrypto only for browser 7 年前
.editorconfig add .editorconfig and auto format 7 年前
.gitignore upgrade to node 6 LTS 8 年前
.travis.yml refactor core to use browserify 7 年前
LICENSE change license from MIT to GNU GPLv3 8 年前
package.json Use webcrypto only for browser 7 年前
readme.md fix 404 link 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