gem install ruby_gpg
To encrypt files:
ruby gpg-encrypt.rb file1.jpg file2.odt
To decrypt files:
ruby gpg-encrypt.rb file1.jpg.gpg file2.odt.gpg
I recommend add these scripts into /usr/local/bin
(it must be declared in $PATH
):
mv gpg-encrypt.rb /usr/local/bin/gpg-encrypt && chmod +x /usr/local/bin/gpg-encrypt
mv gpg-decrypt.rb /usr/local/bin/gpg-decrypt && chmod +x /usr/local/bin/gpg-decrypt
To use these scripts through Nemo file manager (default file manager in Cinnamon desktop environment), it's only necessary add them into /home/$USER/.local/share/nemo/actions
.