sym_enc | R Documentation |
Standard sship symmetric encryption
sym_enc(data, key, iv = openssl::rand_bytes(16))
data |
raw vector or path to file with data to encrypt or decrypt |
key |
raw vector of length 16, 24 or 32, e.g. the hash of a shared secret |
iv |
raw vector of length 16 (aes block size) or NULL. The initialization vector is not secret but should be random |
A raw vector of encrypted data
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.