android-components / mozilla.components.lib.dataprotect / Keystore / decryptBytes

# decryptBytes

`fun decryptBytes(encrypted: ByteArray): ByteArray` (source)

Decrypts data using the managed key.

The input of this method is expected to include input factors (i.e., initialization vector), ciphertext, and authentication tag as a single byte string; it is the direct output from encryptBytes.

### Parameters

`encrypted` - The encrypted data to decrypt

Return
The decrypted "plaintext" data