vncore / com.venuenext.vncore.security / Keystore / decryptData

decryptData

fun decryptData(context: Context, alias: String, encryptedData: ByteArray): String

Decrypts data with alias name.

Parameters

alias - the alias name of the keystore.

encryptedData - the encrypted data byte array.

Exceptions

UnrecoverableEntryException - , NoSuchAlgorithmException, KeyStoreException, NoSuchProviderException, NoSuchPaddingException, InvalidKeyException, IOException, BadPaddingException, IllegalBlockSizeException, InvalidAlgorithmParameterException

Return
the decrypted string.