sym_enc {sship} | R Documentation |
Standard sship symmetric encryption
Description
Standard sship symmetric encryption
Usage
sym_enc(data, key, iv = openssl::rand_bytes(16))
Arguments
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 |
Value
A raw vector of encrypted data
.
[Package sship version 0.9.0 Index]