AGWA / git-crypt

Transparent file encryption in git
https://www.agwa.name/projects/git-crypt/
GNU General Public License v3.0
8.18k stars 475 forks source link

Changing the encryption key on a file?? #160

Open MaxFlanders opened 5 years ago

MaxFlanders commented 5 years ago

Can I change the encryption key on a file?? Imagining that I start my repository with only a single key, and then I add another key. If change the filter and diff values on an already-encrypted file, will git-crypt de-crypt and re-crypt that file with the new key?

This tool is one of the most fantastic products I've seen in a long time. Simple, easy-to-set-up, and very effective. Thank you!

roosemberth commented 4 years ago

I found myself with this situation:

One of our collaborators left the organization. I rolled the keys in 4 steps:

poc: https://gitlab.com/agepoly/it/infra/ansible/-/merge_requests/155