Giter Site home page Giter Site logo

dpki-lite.js's Introduction

dpki-lite.js's People

Contributors

willemolding avatar zo-el avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dpki-lite.js's Issues

In pwHash, sodium.crypto_pwhash_MEMLIMIT causes error when set to SENSITIVE

Using the util.pwHash helper function I run in to some issues when hashing passwords. If the memlimit is set to sensitive it sometimes crashes with this error:

Uncaught (in promise) Error: invalid usage
    at b (libsodium-wrappers.js:1)
    at Object.Te [as crypto_pwhash] (libsodium-wrappers.js:1)
    at util.js:108
    at <anonymous>

This is repeatable in the Chrome test browser I am using for Cypress integration tests but it appears to work fine in Firefox and regular Chrome.

Setting the memlimit to crypto_pwhash_MEMLIMIT_INTERACTIVE as suggested here allows it to work correctly in the chrome test browser. Not sure what the ramifications of this are...

As an aside, the hashing is MUCH faster when the memlimit is set to interactive. It is very slow (~3-4 seconds) using the original configuration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.