kms_encrypt {AWR.KMS}R Documentation

Encrypt plain text via KMS

Description

Encrypt plain text via KMS

Usage

kms_encrypt(key, text)

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

## Not run: 
kms_encrypt('alias/mykey', 'foobar')

## End(Not run)

[Package AWR.KMS version 0.1 Index]