Skip to content

Commit

Permalink
RSAGetPublicString & RSAGetPrivateString
Browse files Browse the repository at this point in the history
RSAGetPublicString is defined as RSAKey.getPublicString
RSAGetPrivateString is defined as RSAKey.getPrivateString
  • Loading branch information
xing-zheng committed Apr 15, 2016
1 parent 92d6918 commit 049dc1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ var RSAKey = require('react-native-rsa');
const bits = 1024;
const exponent = '10001'; // must be a string. This is hex string. decimal = 65537
var rsa = new RSAKey();
var r = rsa.generate(bits, exponent);
var publicKey = rsa.RSAGetPublicString(); // return json encoded string
var privateKey = rsa.RSAGetPrivateString(); // return json encoded string
rsa.generate(bits, exponent);
var publicKey = rsa.getPublicString(); // return json encoded string
var privateKey = rsa.getPrivateString(); // return json encoded string
```

Encrypt
Expand Down

0 comments on commit 049dc1c

Please sign in to comment.