Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 
Guillaume Vincent 8980726f96 stop building lesspass/core for browser 8 lat temu
tests stop building lesspass/core for browser 8 lat temu
.gitignore simplify API for password creation 8 lat temu
.npmignore version 1.0.0 on npm 8 lat temu
.travis.yml version 1.0.0 on npm 8 lat temu
ISSUE_TEMPLATE add issue template 8 lat temu
index.js stop building lesspass/core for browser 8 lat temu
license standardization of sub modules 8 lat temu
package.json stop building lesspass/core for browser 8 lat temu
readme.md stop building lesspass/core for browser 8 lat temu

readme.md

Build Status

LessPass Core

core library for LessPass password manager in javascript used to generate unique password.

Requirements

  • node v4.6.x

Install

npm install lesspass

Usage

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

Tests

npm test

see LessPass project