Skip to content

Commit 08285e2

Browse files
committed
Made "getPlainText" a public method for use in native code
1 parent aedb1b9 commit 08285e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/reactlibrary/securekeystore/RNSecureKeyStoreModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ private SecretKey getSymmetricKey(String alias) throws GeneralSecurityException,
194194
return new SecretKeySpec(decryptRsaCipherText(getPrivateKey(alias), cipherTextBytes), Constants.AES_ALGORITHM);
195195
}
196196

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

0 commit comments

Comments
 (0)