Wolfram Language

Email Encrypted Data

The ability to encrypt arbitrary expressions allows them to be saved and transmitted securely. For example, a recipient's public key can be used to create an EncryptedObject with a message, which then sent to them using SendMail. Only the recipient, using their private key, can decrypt it.

The recipient's public key is needed to send them an encrypted message. In this example, the recipient has shared their key as a cloud object on the Wolfram Cloud.

Create a message to send.

Encrypt the message using the recipient's public key.

Send an email with the encrypted message as an attachment.

The recipient can connect to the email server and open their inbox.

Search for the most recent email with the appropriate subject line.

Get the email body text.

Get the private key corresponding to the public key used for encryption.

Decrypt the message with the private key.

Related Examples

de es fr ja pt-br zh