Guillaume Vincent 8980726f96 | il y a 8 ans | |
---|---|---|
tests | il y a 8 ans | |
.gitignore | il y a 8 ans | |
.npmignore | il y a 8 ans | |
.travis.yml | il y a 8 ans | |
ISSUE_TEMPLATE | il y a 8 ans | |
index.js | il y a 8 ans | |
license | il y a 8 ans | |
package.json | il y a 8 ans | |
readme.md | il y a 8 ans |
core library for LessPass password manager in javascript used to generate unique password.
npm install lesspass
import LessPass from 'lesspass';
const site = 'lesspass.com';
const login = 'contact@lesspass.com';
const masterPassword = 'password';
const options = {
counter: 1,
length: 12,
lowercase: true,
uppercase: true,
numbers: true,
symbols: true
};
LessPass.encryptLogin(login, masterPassword)
.then(encryptedLogin => {
var generatedPassword = LessPass.renderPassword(encryptedLogin, site, options);
console.log(generatedPassword); //azYS7,olOL2]
});
see tests/api.tests.js for more examples
npm test
see LessPass project