Guillaume Vincent 076d74f7d8 | 8 anos atrás | |
---|---|---|
example | 8 anos atrás | |
lib | 8 anos atrás | |
src | 8 anos atrás | |
tests | 8 anos atrás | |
.gitignore | 8 anos atrás | |
.travis.yml | 8 anos atrás | |
LICENSE | 8 anos atrás | |
gulpfile.js | 8 anos atrás | |
index.js | 8 anos atrás | |
package.json | 8 anos atrás | |
readme.md | 8 anos atrás | |
webcrypto.js | 8 anos atrás |
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