sym_enc: Standard sship symmetric encryption

View source: R/enc.R

sym_encR 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.


sship documentation built on Dec. 28, 2022, 2:01 a.m.