Okay this is a weird sort of question. I might get down-voted for being stupid here.
I'd like to be able to edit an encrypted file, but without having to manually decrypt it to a location on the disk.
I see the workflow going something like this:
- I type a unix command, naming the encrypted file to edit
- I enter the password to decrypt the file stream
- A graphical editor opens containing the decrypted version of the file
- I can edit the file, and whenever I save it gets encrypted on the fly back into the encrypted file
- When I close the editor, only the encrypted file remains
I kinda thought it should be possible to get an editor to talk to an on-the-fly encryption stream but think it was talking to a normal file. Something like:
$ sublime-text | open-gpg-stream my-encrypted-file.gpg password:
Is this possible? Or is my understanding just way off? If this isn't possible, could you please explain why it's not possible?