encrypt_sync
Description:
[ Version ( since = "3.0" ) ]
public virtual bool encrypt_sync (string? userid, GenericArray<string> recipients, MimePart ipart, MimePart opart, Cancellable? cancellable = null) throws Error
public virtual bool encrypt_sync (string? userid, GenericArray<string> recipients, MimePart ipart, MimePart opart, Cancellable? cancellable = null) throws Error
Encrypts the clear-text ipart
and writes the resulting cipher-text to opart
.
Note: The userid
is unused, null should be passed for it.
Parameters:
this | |
userid |
unused |
recipients |
an array of recipient key IDs and/or email addresses |
ipart |
clear-text MimePart |
opart |
cipher-text MimePart |
cancellable |
optional Cancellable object, or null |
Returns:
true on success, false on error |