RSA_DECRYPT

Decrypts encrypted 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_DECRYPT(encrypted_message, key, [padding: "PKCS1_PADDING"])

Usage examples 

Example 1

Formula

RSA_DECRYPT(encrypted_data, key)

Output

"Decrypted message"

Example 2

Formula

RSA_DECRYPT(encrypted_data, key, padding: "PKCS1_PADDING")

Output

"Decrypted data"
Was this helpful?