tweet-nacl-react-native-expo
Tweet NaCl for React Native Expo which uses expo-random to get random bytes (getRandomBytesAsync - equivalent to Node.js crypt.randomBytes),
Last updated a year ago by rajtatata .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tweet-nacl-react-native-expo 
SYNC missed versions from official npm registry.

React Native Expo Tweet NaCl

This package contains modified files from TweetNaCl.js that work with react native expo

Example App: Tweet NaCl Demo (React Native Expo)

Tweet NaCl documentation: TweetNaCl.js Docs

Modifications

  • Modified nacl-fast.js in order to replace the method for generating random bytes

  • Used getRandomBytesAsync from expo-random in order to generate random bytes

  • Since getRandomBytesAsync is async the following methods have become async

    • nacl.randomBytes
    • nacl.box.keyPair
    • nacl.sign.keyPair
    • nacl.sign.keyPair.fromSeed
  • nacl-util.js contains useful functions to encode/decode UTF8 and Base64

Current Tags

  • 1.0.3                                ...           latest (a year ago)

1 Versions

  • 1.0.3                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |