Trying to convert some old shell / unix scripts to Ruby.
I have the following encryption for a file executed with the gpg tool on Unix. I can transfer the recipient key, the file I want to encrypt, and outfile for pgp encryption.
gpg --recipient "$my_recipient_key" \ --encrypt "$my_file" \ --output "$my_outfile" \ --always-trust \ --compress-algo zip
What is Ruby equivalent for simple encryption as stated above?
After some digging, I see:
- OpenPGP is popular, but there is no documentation on the RubyGems website, and rare examples elsewhere.
- gpgme seems popular and promising. However, I will be honest, I'm new to Ruby and clicking on the documentation (see the Link) leaves me a little confused about where to start (for example, a good example will be nice).
- I also see other smaller jewelry and libraries that were created by users, but I am limited to using certified gems from the rubyGems database, as this is used for official use.
Thanks!
source share