Access to encrypted pgp file in Ruby

I have a pgp-encrypted file that I need to extract data at runtime.
Can this be done by decrypting only in memory (as opposed to creating a decrypted file and deleting it after completion)?

+6
ruby pgp
source share
2 answers

A Ruby library called OpenPGP was released a few months ago. This seems to work for you.

+6
source share

Unfortunately, most methods (for example, sign (), verify (), encrypt (), and decrypt ()) are not yet implemented (at the time of writing) in the OpenPGP stone, which makes it useless.

I also found gpgr ( https://github.com/HHRy/gpgr ) to not be useful.

I use gpg-me ( https://github.com/ueno/ruby-gpgme/ ) to sign emails. At least it works great for this.

I did not try to decrypt the files, but a brief overview of the source codes suggests that it will also work.

+2
source share

All Articles