Encrypts plaintext data to ciphertext using a symmetric (TDES, AES), asymmetric (RSA), or derived (DUKPT or EMV) encryption key scheme
Source:R/paymentcryptographydataplane_operations.R
paymentcryptographydataplane_encrypt_data.RdEncrypts plaintext data to ciphertext using a symmetric (TDES, AES), asymmetric (RSA), or derived (DUKPT or EMV) encryption key scheme. For more information, see Encrypt data in the Amazon Web Services Payment Cryptography User Guide.
See https://www.paws-r-sdk.com/docs/paymentcryptographydataplane_encrypt_data/ for full documentation.
Usage
paymentcryptographydataplane_encrypt_data(
KeyIdentifier,
PlainText,
EncryptionAttributes,
WrappedKey = NULL
)Arguments
- KeyIdentifier
[required] The
keyARNof the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.When a WrappedKeyBlock is provided, this value will be the identifier to the key wrapping key. Otherwise, it is the key identifier used to perform the operation.
- PlainText
[required] The plaintext to be encrypted.
For encryption using asymmetric keys, plaintext data length is constrained by encryption key strength that you define in
KeyAlgorithmand padding type that you define inAsymmetricEncryptionAttributes. For more information, see Encrypt data in the Amazon Web Services Payment Cryptography User Guide.- EncryptionAttributes
[required] The encryption key type and attributes for plaintext encryption.
- WrappedKey
The WrappedKeyBlock containing the encryption key for plaintext encryption.