kms_encrypt: Encrypt plain text via KMS

Description Usage Arguments Value References See Also Examples

Description

Encrypt plain text via KMS

Usage

1

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 character vector, eg an RSA key, a database password, or other sensitive customer information

Value

Base64-encoded text

References

http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/kms/AWSKMSClient.html#encrypt-com.amazonaws.services.kms.model.EncryptRequest-

See Also

kms_decrypt

Examples

1
2
3
4
## Not run: 
kms_encrypt('alias/mykey', 'foobar')

## End(Not run)

cardcorp/kmR documentation built on May 13, 2019, 12:13 p.m.