react-native-rsa-native
Advanced tools
Comparing version 1.0.12 to 1.0.13
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116088
103