Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 
Guillaume Vincent 908d6568ba Add husky to prevent commit without green tests pirms 7 gadiem
dist Migrate from Browserify to Webpack pirms 7 gadiem
example update documentation with v2 example pirms 8 gadiem
src move index into src folder pirms 8 gadiem
tests update documentation with v2 example pirms 8 gadiem
.gitignore upgrade to node 6 LTS pirms 8 gadiem
.travis.yml upgrade to node 6 LTS pirms 8 gadiem
LICENSE change license from MIT to GNU GPLv3 pirms 8 gadiem
package.json Add husky to prevent commit without green tests pirms 7 gadiem
readme.md fix 404 link pirms 7 gadiem
webpack.config.js Migrate from Browserify to Webpack pirms 7 gadiem

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