Encrypt plain text via KMS

kms_encrypt(key, text, simplify = TRUE)

Arguments

key

the KMS customer master key identifier as a fully specified Amazon Resource Name (eg arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012) or an alias with the alias/ prefix (eg alias/foobar)

text

max 4096 bytes long string, eg an RSA key, a database password, or other sensitive customer information

simplify

returns Base64-encoded text instead of raw list

Value

string or list

See also