Giter Club home page Giter Club logo

Comments (3)

hellogerard avatar hellogerard commented on May 25, 2024 1

@vadimavdeev Thanks, I did see the other issue and I am monitoring it.

We can close this issue. This was due to a bug on our side. Everything appears to be working now.

Since there is no native btoa or atob functions in React Native, we have setup code that polyfills these functions. This code has been in place for years.

global.btoa = global.btoa || base64.encode;
global.atob = global.btoa || base64.decode;

Can you spot the bug? 😄 Pretty sure the atob functions has been wrong for a long time, but we've never had to use it in the app until now.

from virgil-crypto-javascript.

vadimavdeev avatar vadimavdeev commented on May 25, 2024

Does the crash happen on both iOS and Android? Can you show the full error output with the call stack?

from virgil-crypto-javascript.

vadimavdeev avatar vadimavdeev commented on May 25, 2024

Please note that it's not safe to use version 3.x of this library in React Native due to the use of insecure random number generator. See this comment for a temporary workaround.
We are currently building a separate package with a react native bridge for Virgil Crypto library for Android and iOS. It is planned for release next week. I'll update the referenced issue when we have the news.

from virgil-crypto-javascript.

Related Issues (15)

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.