When you decrypt a file with GnuPG with the -d option and the file is in ascii form, it simply scrolls down the screen and can be read. But what if it isn't an ascii file that was encrypted, but say a Word file (foo.doc.gpg). So I end up with a decrypted binary file (foo.doc) that scrolls down the screen, but is still unreadable.
What I'm asking, is there a single command using
gpg -d... where the output is then read by Libre Office, which translates the .doc file to readable form which then scrolls down - ie I don't wish to save this file at any point to my hard drive if I can help it, owing to its sensitive data and possible security risk.
gpg -d /EncryptDir/foo.doc.gpg>foo && libreoffice foo && shred fooallows me to read the file as normal, and is then shredded once I close Libre Office, but it is temporarily saved to my drive while it is open (being read). Is there a more direct solution avoiding the temporary saving of foo?