PublicKey.encrypt

Encrypt the passed data using the PublicKey

Notes: This is size limited based off the key Not recommended for general encryption, use RSA for encrypting a random key instead and switch to a block cipher.

class PublicKey
ubyte[]
encrypt
(
const(ubyte)[] data
)

Parameters

data const(ubyte)[]

the data to encrypt

Meta