question about setting options with gpgme

Werner Koch wk at gnupg.org
Fri Jul 4 10:28:28 CEST 2008


On Thu,  3 Jul 2008 20:13, bernhard at intevation.de said:

> I've probably missed it: Is there a possibility to do symmetric crypto 
> operations over gpgme?

Pass NULL instead of an array of recipients to the encrypt function:

  If @var{recp} is @code{NULL}, symmetric rather than public key
  encryption is performed.  Symmetrically encrypted cipher text can be
  deciphered with @code{gpgme_op_decrypt}.  Note that in this case the
  crypto backend needs to retrieve a passphrase from the user.
  Symmetric encryption is currently only supported for the OpenPGP
  crypto backend.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.




More information about the Gnupg-devel mailing list