0.3.0 • Published 8 years ago

lesspass-webcrypto v0.3.0

Weekly downloads
8
License
MIT
Repository
github
Last release
8 years ago

Build Status

LessPass browser module with web crypto used to generate LessPass passwords

Install

npm install lesspass-webcrypto

Requirements

  • browser compatible with web crypto

Browser

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="lesspass.min.js"></script>
</head>
<body>
<script>
    var site = 'lesspass.com';
    var login = 'contact@lesspass.com';
    var masterPassword = 'password';
    var options = {
        counter: 1,
        length: 12,
        lowercase: true,
        uppercase: true,
        numbers: true,
        symbols: true
    };

    LessPass.encryptLogin(login, masterPassword)
        .then(encryptedLogin => {
            LessPass.renderPassword(encryptedLogin, site, options).then(generatedPassword =>{
                console.log(generatedPassword); //azYS7,olOL2]        
            });
        });
</script>
</body>
</html>

see tests/api.tests.js for more examples

Tests

npm test

test broser and node version

npm run test:all

License

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

Issues

report issues on LessPass project

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago