Guillaume Vincent 91decc688f | 7 vuotta sitten | |
---|---|---|
dist | 7 vuotta sitten | |
example | 7 vuotta sitten | |
src | 7 vuotta sitten | |
test | 7 vuotta sitten | |
.editorconfig | 7 vuotta sitten | |
.gitignore | 8 vuotta sitten | |
.travis.yml | 7 vuotta sitten | |
LICENSE | 8 vuotta sitten | |
package.json | 7 vuotta sitten | |
readme.md | 7 vuotta sitten |
core library for LessPass password manager in javascript used to generate unique password.
npm install lesspass
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
npm test
This project is licensed under the terms of the GNU GPLv3.
report issues on LessPass project