Skip to content

Is it secure to store a copy of an encrypted file with omitted secrets alongside the encrypted file? #560

Answered by cipriancraciun
kharf asked this question in Q&A
Discussion options

You must be logged in to vote

And I use age to encrypt the whole file, but I keep a copy of that file and replace "secret" with a dummy value and store both the encrypted content and the copy of the original version with dummy values together in a git repository; how secure would that be?

Storing the encrypted version of the secret file in Git is not a big issue, as long as you can keep your encryption key / password safe. Else, if the encryption material (key / password) is compromised, the attacker can extract the encrypted configuration file from any clone of your Git repository (assuming the Git repository is public) and decrypt it, thus leaking your secret.

Thus, if your "secret" is something that can't be easi…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kharf
Comment options

@cipriancraciun
Comment options

@kharf
Comment options

Answer selected by kharf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants