Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encrypt on save, decrypt on open #9

Open
markNZed opened this issue Sep 6, 2024 · 1 comment
Open

Encrypt on save, decrypt on open #9

markNZed opened this issue Sep 6, 2024 · 1 comment

Comments

@markNZed
Copy link

markNZed commented Sep 6, 2024

I would like to be able to edit a file in VS Code and be sure that it is always encrypted when it is pushed. I'd also like to use my OpenPGP keys and ideally only have to enter the passphrase once per session. This extension seems very close. Maybe this is not possible with VS Code extensions? I found some discussion of this at https://stackoverflow.com/questions/64457293/vscode-decrypt-on-open-encrypt-on-save and that indicates the decrypted file would still be saved to disk for a short time - which is not ideal. There is also a request for "transparent editing" at jvalecillos/vscode-gpg#6 which mentions that "none of the gpg extensions in vscode do this" as of 2021

Is there a way to use the gpg-agent so we do not have to enter the passphrase every time ?

I am not used to using OpenPGP so it took me some time to realize that I needed to generate files and put them into ~/.vscode/openpgp-keys maybe that coud be mentioned in the README

Thanks for your work!

@markNZed
Copy link
Author

markNZed commented Sep 6, 2024

I ended up using git-crypt which automates the encryption/decryption

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant