Comments (8)
@mdp React Native doesn't use Webkit, it just uses JavaScriptCore, which is a wrapper around Webkit's Javascript engine. That also means that you won't have secure random number generator, so unless you've implemented one yourself, TweetNacl won't even work under React Native.
from tweetnacl-js.
For everyone's information, this was recently fixed in WebKit https://bugs.webkit.org/show_bug.cgi?id=158576
from tweetnacl-js.
http://code.google.com/p/gflot/source/browse/trunk/flot/base64.js?r=153 can solve this
from tweetnacl-js.
This also happens React Native for iOS since it's using a webkit engine that doesn't support atob
and doesn't have Buffer
from tweetnacl-js.
@mdp thanks for letting me know!
I think I'll deprecate the nacl.utils part sometime in the future. As explained in docs:
Encoding/decoding functions are provided for convenience. They are correct, however their performance and wide compatibility with uncommon runtimes is not something that is considered important compared to the simplicity and size of implementation. You can use third-party libraries if you need to.
from tweetnacl-js.
@dchest Yeah that's fair, I just wanted to add to this thread in case anyone else runs across it.
@alax Thanks, this is really good to know. I was only using it for decryption, but it's something I'll definitely keep in mind.
from tweetnacl-js.
@mdp Ahh, gotcha. Yeah, you are right, decryption would be 100% fine.
from tweetnacl-js.
@alax @mdp yep, only key generation needs random numbers: secretbox, cryptobox, signing all work fine without PRNG if you already have keys, as mentioned here.
from tweetnacl-js.
Related Issues (20)
- ed25519 decode / decompress HOT 3
- Please also export "pack" function in nacl.lowlevel HOT 2
- Box keypair from seed? HOT 2
- Public-key authenticated encryption (box) without authentication HOT 1
- Generating keypair leaks memory HOT 9
- setPRNG HOT 4
- nacl.sign.keyPair & nacl.box.keyPair have inconsistent pubkey HOT 6
- How to use ed25519 secret key in php (Should I convert it to to PEM/OpenSSH compatible format?) HOT 4
- How to add public keys (EC points)? HOT 6
- Hierarchical Deterministic (HD) style extended keys HOT 1
- Support Ed25519ph (HashEdDSA) RFC 8032 Section 5 HOT 2
- Converting ed25519 keys from elliptic lib
- Security vulnerability: nacl.sign.detached accepts invalid keys HOT 8
- no PRNG in react-native HOT 1
- ed25519 verification is malleable and accepts forged signatures HOT 7
- tweetnacl for signal protocol keypairs?
- decrypt with box always return null HOT 1
- This package is unlicensed HOT 1
- Licensing library under MIT HOT 1
- 2.0 or something revamped? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tweetnacl-js.