Learn R Programming

encryptr (version 0.1.3)

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

Description

Not usually called directly.

Usage

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

Run this code
# NOT RUN {
hospital_number = c("1010761111", "2010761212")
encrypt_vec(hospital_number)
# }

Run the code above in your browser using DataLab