fun decryptData(context: Context, alias: String, encryptedData: ByteArray): String
Decrypts data with alias name.
alias
- the alias name of the keystore.
encryptedData
- the encrypted data byte array.
UnrecoverableEntryException
- , NoSuchAlgorithmException, KeyStoreException, NoSuchProviderException,
NoSuchPaddingException, InvalidKeyException, IOException, BadPaddingException, IllegalBlockSizeException,
InvalidAlgorithmParameterException
Return
the decrypted string.