Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
react-native-signal-protocol
Advanced tools
Module-friendly implementation of Signal Protocol for React Native
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
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
Module-friendly implementation of Signal Protocol for React Native
The npm package react-native-signal-protocol receives a total of 0 weekly downloads. As such, react-native-signal-protocol popularity was classified as not popular.
We found that react-native-signal-protocol demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.