encrypt_vec: Encrypt a character vector using an RSA public/private key

Description Usage Arguments Value Examples

View source: R/encrypt.R

Description

Not usually called directly.

Usage

1
encrypt_vec(.data, public_key_path = "id_rsa.pub")

Arguments

.data

A vector, which if not a character vector is coerced to one.

public_key_path

Character. A quoted path to an RSA public key created using genkeys.

Value

A vector of ciphertexts.

Examples

1
2
3
4
5
## Not run: 
hospital_number = c("1010761111", "2010761212")
encrypt_vec(hospital_number)

## End(Not run)

SurgicalInformatics/encryptr documentation built on Nov. 9, 2019, 6:55 p.m.