Guillaume Vincent d66a896524 | 7 年之前 | |
---|---|---|
dist | 7 年之前 | |
example | 7 年之前 | |
src | 7 年之前 | |
tests | 7 年之前 | |
.editorconfig | 7 年之前 | |
.gitignore | 8 年之前 | |
.travis.yml | 8 年之前 | |
LICENSE | 8 年之前 | |
package.json | 7 年之前 | |
readme.md | 7 年之前 | |
webpack.config.js | 7 年之前 |
core library for LessPass password manager in javascript used to generate unique password.
npm install lesspass
const site = 'lesspass.com';
const login = 'contact@lesspass.com';
const masterPassword = 'password';
const passwordProfile = {
lowercase: true,
uppercase: true,
numbers: true,
symbols: true,
length: 16,
counter: 1,
version: 2
};
LessPass.generatePassword(site, login, masterPassword, passwordProfile)
.then(function (generatedPassword) {
assert.equal(generatedPassword, '\\g-A1-.OHEwrXjT#');
console.log('generated password ok');
});
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