New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-rsa-util

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-rsa-util

rsa util for iOS and Android

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

react-native-rsa-util

rsa util for iOS and Android

How To Use This

1. npm install this module

npm i react-native-rsa-util
rnpm link react-native-rsa-util

3. import react-native-rsa-util

import ReactNativeRSAUtil from 'react-native-rsa-util';

4. use it !!!

encryptStringWithPublicKey

ReactNativeRSAUtil.encryptStringWithPublicKey(content, RSA_PUBLIC_KEY)
    .then((error, data) => {
        if ( !error ) {
            console.log(data);
        }
    });

decryptStringWithPublicKey

ReactNativeRSAUtil.decryptStringWithPublicKey(content, RSA_PUBLIC_KEY)
    .then((error, data) => {
        if ( !error ) {
            console.log(data);
        }
    });

encryptStringWithPrivateKey

ReactNativeRSAUtil.encryptStringWithPrivateKey(content, RSA_PRIVATE_KEY)
    .then((error, data) => {
        if ( !error ) {
            console.log(data);
        }
    });

decryptStringWithPrivateKey

ReactNativeRSAUtil.decryptStringWithPrivateKey(content, RSA_PRIVATE_KEY)
    .then((error, data) => {
        if ( !error ) {
            console.log(data);
        }
    });

Keywords

rsa

FAQs

Package last updated on 14 Oct 2016

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