Encrypts 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.
paymentcryptographydataplane_encrypt_data(
KeyIdentifier,
PlainText,
EncryptionAttributes,
WrappedKey = NULL
)
[required] The keyARN
of 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.
[required] The plaintext to be encrypted.
For encryption using asymmetric keys, plaintext data length is
constrained by encryption key strength that you define in KeyAlgorithm
and padding type that you define in AsymmetricEncryptionAttributes
.
For more information, see Encrypt data
in the Amazon Web Services Payment Cryptography User Guide.
[required] The encryption key type and attributes for plaintext encryption.
The WrappedKeyBlock containing the encryption key for plaintext encryption.