Skip to content

A subset of Libsodium for React Native with only Argon2 and XChaCha20-Poly1305 support. Replaced by https://github.com/standardnotes/react-native-sodium-jsi

License

Notifications You must be signed in to change notification settings

Pilloxa/react-native-sodium

 
 

Repository files navigation

react-native-sodium

Precompiled binaries of libsodium will be linked by default. Optionally, you can choose to compile libsodium by yourself (run npm run rebuild in package directory). Source code will be downloaded and verified before compilation.

Source compilation

General prerequisites
  • gpg (macports, homebrew)
  • minisign (homebrew)
MacOS prerequisites
  • libtool (macports, homebrew)
  • autoconf (macports, homebrew)
  • automake (macports, homebrew)
  • Xcode (12 or newer)
Android prerequisites
  • Android NDK
  • CMake
  • LLDB

Recompile and repackage

  1. yarn rebundle

Usage

  1. npm install react-native-sodium
  2. npx pod-install ios
  3. Run your app.

Example app

  1. yarn bootstrap
  2. yarn example
  3. yarn ios or yarn android

Credits

This repo is based on react-native-sodium by @lyubo.

About

A subset of Libsodium for React Native with only Argon2 and XChaCha20-Poly1305 support. Replaced by https://github.com/standardnotes/react-native-sodium-jsi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 27.6%
  • C++ 22.8%
  • Java 14.4%
  • Objective-C 13.6%
  • C 12.5%
  • TypeScript 6.5%
  • Other 2.6%