Syntax:
asymmetric_encrypt(algorithm, data_str, pub_key_str)

Encrypts a string using the given algorithm and key string, and returns
the resulting ciphertext as a binary string. If encryption fails, the
result is NULL.

For the legacy version of this function in use before MySQL 8.0.29, see
https://dev.mysql.com/doc/refman/8.0/en/enterprise-encryption-functions
-legacy.html.

algorithm is the encryption algorithm used to create the key. The
supported algorithm value is 'RSA'.

data_str is the string to encrypt. The length of this string cannot be
greater than the key string length in bytes, minus 42 (to account for
the padding).

pub_key_str is a valid PEM encoded RSA public key. The
asymmetric_encrypt() component function only supports encryption using
a public key.

To recover the original unencrypted string, pass the encrypted string
to asymmetric_decrypt(), along with the other part of the key pair used
for encryption, as in the following example:

URL: https://dev.mysql.com/doc/refman/8.0/en/enterprise-encryption-functions.html

