Skip to content

ZombieArg/react-native-expo-tweet-nacl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Expo Tweet NaCl

This package is a Fork from @rajtatata repo that contains modified files from TweetNaCl.js that work with react native expo

The original repo from @rajtatata is using expo-random that is deprecated and the current available library to generate randomBytes it's expo-crypto. The intention of this package is to create an up to date implementation of React Native Expo Tweet NaCl.

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-crypto 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

About

TweetNaCl for React Native Expo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%