Guillaume Vincent 8f4a6855d1 | 8 lat temu | |
---|---|---|
tests | 8 lat temu | |
.gitignore | 8 lat temu | |
.npmignore | 8 lat temu | |
.travis.yml | 8 lat temu | |
ISSUE_TEMPLATE | 8 lat temu | |
index.js | 8 lat temu | |
license | 8 lat temu | |
package.json | 8 lat temu | |
readme.md | 8 lat temu |
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
MIT © Guillaume Vincent