ueno / ruby-gpgme

a ruby interface to GnuPG Made Easy (GPGME).
GNU Lesser General Public License v2.1
232 stars 99 forks source link

Encrypt+sign works using two passes #82

Open Voker57 opened 8 years ago

Voker57 commented 8 years ago

With crypto.encrypt(sign: true), library encrypts the data, then seeks to 0 and signs it. This is problematic when working with pipes for example. gpg2 executable is able to perform encryption and signing in one pass.