npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

tweet-nacl-react-native-expo

1.0.3 • Public • Published

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

install

npm i tweet-nacl-react-native-expo

Downloadsweekly downloads

2

version

1.0.3

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability