Socket
Socket
Sign inDemoInstall

react-native-rsa-native

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-rsa-native - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

2

package.json
{
"name": "react-native-rsa-native",
"version": "1.0.12",
"version": "1.0.13",
"description": "A native implementation of RSA key generation and encryption/decryption.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -69,3 +69,3 @@ # react-native-rsa-native

RSAKeychain.encrypt(secret, keyTag)
return RSAKeychain.encrypt(secret, keyTag)
.then(encodedMessage => {

@@ -79,12 +79,19 @@ console.log(encodedMessage);

})
})
.then(() => {
return RSAKeychain.sign(secret, keyTag)
.then(signature => {
console.log('signature', signature);
RSAKeychain.sign(secret, keyTag)
.then(signature => {
console.log(signature);
RSAKeychain.verify(signature, secret, keyTag)
.then(valid => {
console.log(valid);
})
RSAKeychain.verify(signature, secret, keyTag)
.then(valid => {
console.log('verified', valid);
})
})
})
.then(() => {
RSAKeychain.deletePrivateKey(keyTag)
.then( success => {
console.log('delete success', success)
})
});

@@ -91,0 +98,0 @@ ```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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