RSA_AES_HYBRID_ENCRYPT

Encrypts data of arbitrary length using a provided public or private RSA key, in a hybrid cryptosystem internally using AES. A padding choosing from "PKCS1_PADDING", "PKCS1_OAEP_PADDING" and "SSLV23_PADDING" can be passed in with "PKCS1_PADDING" being the default.

Syntax 

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

Usage examples 

Example 1

Formula

RSA_AES_HYBRID_ENCRYPT(plain_message, key)

Output

1
[
2
"(encrypted aes key)",
3
"(encrypted initialization vector)",
4
"(encrypted data)"
5
]

Example 2

Formula

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

Output

1
[
2
"(encrypted aes key)",
3
"(encrypted initialization vector)",
4
"(encrypted data)"
5
]
Was this helpful?