Git Product home page Git Product logo

vaccinatorjsclient's People

Contributors

datavaccinator avatar deepsourcebot avatar kukulkano avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

vaccinatorjsclient's Issues

The publish() function should not verify max duration

Currently, the publish() function also validates the maximum duration range (365). As this is already done by dv-vault and it may change there, we should not do in the JS lib.

Only check for < 1 but not for the maximum.

Enhanced searchHash function due to documentation

Currently, the search hash is built like this:

  • Hash the word character by character
  • Add random bytes to the generated hash

The drawbacks are:

  • False positive hits during search for words with the same beginning and random matches
  • The entropy for the word length is only added by max 3 characters

As a suggestion, we might build the hash like this:

  • Add a NULL byte to the word
  • Add random bytes to the word until it reaches the size of 16 characters. Use 32 if the word is longer than 16 characters.
  • Hash the word character by character

Benefits:

  • Enhanced entropy for the words
  • Impossible to predict anything by the length of the search hash (all 16 or 32 bytes)
  • Eliminate possible false positives during search

changeAppId() destroys search index

If changeAppId() is used, the existing search index is getting destroyed because the update call with the newly encrypted data does not submit new searchwords.

To fix this, in vaccinator_api.js -> changeAppId(), the newVac instance needs to get newVac.searchFields set to the value of that.searchFields (similar to newVac.setHeaders(that.headers);).

Do not auto-set uid with user-identifier

This class is setting uid to the user-identifier automatically.

There should be an optional parameter for the request to set a uid parameter (like new, get, update etc).

If someone already relies on the uid to be set with the user-identifier, they would have to adapt their code to always provide that value in the calls.

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.