RSA_ENCRYPT

Encrypts data using a public or private key. A padding choosing from "PKCS1_PADDING", "PKCS1_OAEP_PADDING" and "SSLV23_PADDING" can be passed in with "PKCS1_PADDING" being the default.

Syntax 

RSA_ENCRYPT(plain_message, key, [padding: "PKCS1_PADDING"])

Usage examples 

Example 1

Formula

RSA_ENCRYPT(plain_message, key)

Output

"Encrypted data"

Example 2

Formula

RSA_ENCRYPT(plain_message, key, padding: "PKCS1_PADDING")

Output

"Encrypted data"
Was this helpful?