Not usually called directly. Password for private key required.

decrypt_vec(.data, private_key_path = "id_rsa")

Arguments

.data

A vector of ciphertexts created using encrypt.

private_key_path

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

Value

A character vector.

Examples

# NOT RUN {
hospital_number = c("1010761111", "2010761212")
genkeys(file.path(tempdir(), "id_rsa") # temp directory for testing only
hospital_number_encrypted = encrypt_char(hospital_number)
decrypt_vec(hospital_number_encrypted)
# }