Guillaume Vincent c56ee5f12d | pirms 8 gadiem | |
---|---|---|
lib | pirms 8 gadiem | |
tests | pirms 8 gadiem | |
.gitignore | pirms 8 gadiem | |
.travis.yml | pirms 8 gadiem | |
ISSUE_TEMPLATE | pirms 8 gadiem | |
index.js | pirms 8 gadiem | |
license | pirms 8 gadiem | |
package.json | pirms 8 gadiem | |
readme.md | pirms 8 gadiem |
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
};
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
MIT © Guillaume Vincent