Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 
Guillaume Vincent 3262938209 Use lesspass render password in core 7 лет назад
dist Use lesspass render password in core 7 лет назад
example build version 8.0.0 7 лет назад
src Use lesspass render password in core 7 лет назад
test Use lesspass render password in core 7 лет назад
.editorconfig add .editorconfig and auto format 7 лет назад
.gitignore upgrade to node 6 LTS 8 лет назад
.travis.yml refactor core to use browserify 7 лет назад
LICENSE change license from MIT to GNU GPLv3 8 лет назад
README.md build version 8.0.0 7 лет назад
package-lock.json Use lesspass render password in core 7 лет назад
package.json Use lesspass render password in core 7 лет назад

README.md

LessPass core

npm core library used to generate LessPass passwords

Requirements

  • node LTS v6

Install

npm install lesspass

Usage

var profile = {
  site: 'example.org',
  login: 'contact@example.org'
}
var masterPassword = 'password';
LessPass.generatePassword(profile, masterPassword)
    .then(function (generatedPassword) {
        console.log(generatedPassword); // WHLpUL)e00[iHR+w
    });

see tests/api.tests.js for more examples

API

generatePassword(profile, masterPassword)

generate LessPass password

var profile = {
  site: 'example.org',
  login: 'contact@example.org'
  options: {
    uppercase: true,
    lowercase: true,
    digits: true,
    symbols: true,
    length: 16,
    counter: 1
  },
  crypto: {
    method: 'pbkdf2',
    iterations: 100000,
    keylen: 32,
    digest: "sha256"
  }
};
var masterPassword = 'password';
LessPass.generatePassword(profile, masterPassword)
    .then(function (generatedPassword) {
        console.log(generatedPassword); // WHLpUL)e00[iHR+w
    });

createFingerprint(password)

create a fingerprint

LessPass.createFingerprint('password').then(fingerprint => {
  console.log(fingerprint); //e56a207acd1e6714735487c199c6f095844b7cc8e5971d86c003a7b6f36ef51e
});

isSupported()

test if LessPass is supported

LessPass.isSupported().then(function(isSupported) {
  if (isSupported) {
    console.log("LessPass is supported");
  }
  else {
    console.log("LessPass is not supported");
  }
});

Tests

npm test

License

This project is licensed under the terms of the GNU GPLv3.

Issues

report issues on LessPass project