Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-signal-protocol

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-signal-protocol

Module-friendly implementation of Signal Protocol for React Native

  • 0.0.4
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

react-native-signal-protocol

Setup Instructions

VERY IMPORTANT

First, install expo-random, react-native-get-random-values, react-native-securerandom, isomorphic-webcrypto, expo-crypto.

npm install expo-random expo-crypto isomorphic-webcrypto react-native-getrandom-values react-native-securerandom

Then in your React Native project's root index.js file, import expo-random, react-native-get-random-values, and react-native-securerandom. This allows your app to asynchronously load required modules to check secure key generation status.

import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';

// START INSERT
import 'react-native-get-random-values';
import 'react-native-securerandom';
import 'expo-random';
// END INSERT

/// ...
AppRegistry.registerRootComponent(appName, () => App);

Next, enter this package directory, and use Grunt to generate necessary files.

cd node_modules/react-native-signal-protocol
npm install
grunt

Usage

import signal from 'react-native-signal-protocol';

const KeyHelper = signal.KeyHelper;

// CODE

This project is based off this repo.

Follow standard usage from libsignal-protocol-javascript.

FAQs

Package last updated on 24 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc