openpgp_encrypt


Description:

public bool openpgp_encrypt (bool sign, string? userid, EncryptFlags flags, GenericArray<string> recipients) throws Error

Encrypts (and optionally signs) the content of the this and then replaces the content with the new, encrypted, content.

Parameters:

this

a Part

sign

true if the content should also be signed; otherwise, false

userid

the key id (or email address) to use when signing (assuming sign is true)

flags

a set of EncryptFlags

recipients

an array of recipient key ids and/or email addresses

Returns:

true on success or false on error.