Xojo.Crypto.RSAEncrypt

From Xojo Documentation

Method

Xojo.Crypto.RSAEncrypt(data As Xojo.Core.MemoryBlock, publicKey As Xojo.Core.MemoryBlock) As Xojo.Core.MemoryBlock

Supported for all project types and targets.

Encrypts the data using the specified publicKey.

Notes

The data that is being encrypted should be kept pretty short (usually just a couple hundred characters, but it depends on the number of bits you use to create the keys). Typically you use the this to communicate a "secret key" of some kind that can be used to decrypt an actual message that was encrypted using some other technique (such as AES).

Exceptions