decrypt_vec {encryptr} | R Documentation |
Decrypt ciphertext using an RSA public/private key
Description
Not usually called directly. Password for private key required.
Usage
decrypt_vec(.data, private_key_path = "id_rsa")
Arguments
.data |
A vector of ciphertexts created using |
private_key_path |
Character. A quoted path to an RSA private key
created using |
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)
## End(Not run)
[Package encryptr version 0.1.3 Index]