decrypt {rmonocypher} | R Documentation |
Decrypt an encrypted object
Description
Decrypt an encrypted object
Usage
decrypt(src, key, additional_data = NULL)
Arguments
src |
Raw vector or filename |
key |
The encryption key. This may be a character string, a 32-byte raw vector or a 64-character hex string (which encodes 32 bytes). When a shorter character string is given, a 32-byte key is derived using the Argon2 key derivation function. |
additional_data |
Additional data to include in the
authentication. Raw vector or character string. Default: NULL.
This additional data is not
included with the encrypted data, but represents an essential
component of the message authentication. The same |
Value
A decrypted R object
Examples
key <- argon2('my key')
encrypt(mtcars, key = key) |>
decrypt(key = key)
[Package rmonocypher version 0.1.8 Index]