| age_passphrase | R Documentation |
Passphrase-based (scrypt) encryption, a separate mode from the
recipient-based age_encrypt_raw() family. A file encrypted this way is
decrypted with the matching age_decrypt_*_passphrase() function and the
same passphrase — no key pair is involved.
age_encrypt_raw_passphrase(x, passphrase = NULL, armor = FALSE, log_n = 18)
age_decrypt_raw_passphrase(x, passphrase = NULL)
age_encrypt_file_passphrase(
input,
output = NULL,
passphrase = NULL,
armor = FALSE,
overwrite = FALSE,
log_n = 18
)
age_decrypt_file_passphrase(
input,
output = NULL,
passphrase = NULL,
overwrite = FALSE
)
x |
For |
passphrase |
A length-1 character string. If |
armor |
If |
log_n |
scrypt work factor, as the base-2 logarithm of the parameter N. Higher is slower and more brute-force resistant. Defaults to 18; values above 22 are rejected (also on decrypt) to bound work. |
input, output |
File paths. |
overwrite |
If |
The raw functions return a raw vector; the file functions return the output path invisibly.
ct <- age_encrypt_raw_passphrase(
charToRaw("secret"),
passphrase = "hunter2",
log_n = 8
)
rawToChar(age_decrypt_raw_passphrase(ct, passphrase = "hunter2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.