Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajtatata/react-native-expo-tweet-nacl
TweetNaCl for React Native Expo
https://github.com/rajtatata/react-native-expo-tweet-nacl
authentication crypto curve25519 djb ed25519 eddsa elliptic-curves javascript libsodium nacl salsa20 secretbox sha-512 signature tweetnacl
Last synced: 3 months ago
JSON representation
TweetNaCl for React Native Expo
- Host: GitHub
- URL: https://github.com/rajtatata/react-native-expo-tweet-nacl
- Owner: rajtatata
- Created: 2019-07-21T23:14:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-30T14:28:38.000Z (over 3 years ago)
- Last Synced: 2024-11-07T02:48:17.690Z (3 months ago)
- Topics: authentication, crypto, curve25519, djb, ed25519, eddsa, elliptic-curves, javascript, libsodium, nacl, salsa20, secretbox, sha-512, signature, tweetnacl
- Language: JavaScript
- Size: 14.6 KB
- Stars: 13
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Native Expo Tweet NaCl [
](https://www.npmjs.com/package/tweet-nacl-react-native-expo)
### This package contains modified files from [TweetNaCl.js](https://github.com/dchest/tweetnacl-js) that work with react native expo
#### Example App: [Tweet NaCl Demo (React Native Expo)](https://github.com/rajtatata/react-native-tweet-nacl-expo-example)
#### Tweet NaCl documentation: [TweetNaCl.js Docs](https://github.com/dchest/tweetnacl-js#documentation)# Modifications
- Modified nacl-fast.js in order to replace the method for generating random bytes
- Used [getRandomBytesAsync](https://docs.expo.io/versions/latest/sdk/random/#getrandombytesasync) from [expo-random](https://docs.expo.io/versions/latest/sdk/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
#