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