AGWA / git-crypt

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

feature request: use ASCII for keys #289

Open giorgiga opened 1 year ago

giorgiga commented 1 year ago

Having git crypt export produce ASCII keys (eg. with base64) would help in the managing and sharing of keys, as one could store/transmit them them as text without worries (eg. add them to password managers without requiring support for attachments)

manuelmhtr commented 6 months ago

Another use case: I tried to store the key in AWS Secret Manager, it doesn't support files but plain text.

manuelmhtr commented 6 months ago

I found the solution. You can transform the input to base64:

openssl base64 -in  [input path] -out [output path]

And to decode it:

openssl base64 -d -in  [input path] -out [output path]