I have a pgp-encrypted file that I need to extract data from at runtime.
Can this be done by decrypting to memory only (as opposed to creating a decrypted file and deleting it when done)?
Asked
Active
Viewed 3,560 times
2 Answers
6
A Ruby library called OpenPGP was released a few months ago. It seems like it'd work for you.

Yehuda Katz
- 28,535
- 12
- 89
- 91
2
Unfortunately, most of the methods (e.g. sign(), verify(), encrypt(), and decrypt()) are not yet implemented (by the time of this writing) in the OpenPGP gem, which makes it useless.
I also found gpgr (https://github.com/HHRy/gpgr) not to be useful.
I am using gpg-me (https://github.com/ueno/ruby-gpgme/) for signing emails. At least for this purpose, it works fine.
I have not tried to decrypt files, but a short look at the source codes suggests that it will also work.

fex
- 197
- 1
- 13