Skip to content

Commit

Permalink
Merge pull request #84 from oceanbit-dev/master
Browse files Browse the repository at this point in the history
Made "getPlainText" a public method for use in native code
  • Loading branch information
pradeep1991singh authored Aug 9, 2020
2 parents aedb1b9 + 08285e2 commit 133a1a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ private SecretKey getSymmetricKey(String alias) throws GeneralSecurityException,
return new SecretKeySpec(decryptRsaCipherText(getPrivateKey(alias), cipherTextBytes), Constants.AES_ALGORITHM);
}

private String getPlainText(String alias) throws GeneralSecurityException, IOException {
public String getPlainText(String alias) throws GeneralSecurityException, IOException {
SecretKey secretKey = getSymmetricKey(alias);
byte[] cipherTextBytes = Storage.readValues(getContext(), Constants.SKS_DATA_FILENAME + alias);
return new String(decryptAesCipherText(secretKey, cipherTextBytes), "UTF-8");
Expand Down

0 comments on commit 133a1a9

Please sign in to comment.