| age_text | R Documentation |
Convenience wrappers over age_encrypt_raw() / age_decrypt_raw() for one
string, ASCII-armored by default so the result is copy-pasteable. Encoding
is forced to UTF-8 on the way in and marked on the way out.
age_encrypt_text(x, recipients, armor = TRUE)
age_decrypt_text(x, identities)
x |
For |
recipients |
Character vector of |
armor |
Must be |
identities |
An |
age_encrypt_text() returns a length-1 character string;
age_decrypt_text() returns a length-1 UTF-8 string. age_decrypt_text()
signals age_error_decrypt if the plaintext is not valid UTF-8 text (for
binary payloads, use age_decrypt_raw()).
id <- age_keygen()
rec <- age_pubkey(id)
ct <- age_encrypt_text("db_password_123", recipients = rec)
age_decrypt_text(ct, identities = id)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.