Allow extracting bulk encryption symmetric key and using it for decryption #213
Replies: 2 comments 5 replies
-
An alternative way to implement this use case would be as a plugin. It would be similar to a daemon plugin, and have several components:
Setup flow:
Usage flow:
This is basically the same approach (the plugin protocol effectively ships the header from |
Beta Was this translation helpful? Give feedback.
-
I have a similar use case as @hardfalcon: I want to add and remove recipients without decrypting and re-encrypting the whole file. i.e. I only want to decrypt the file_key alone and re-encrypt it with different recipients. This would be a nice feature. At the moment I don't see a way to do this. |
Beta Was this translation helpful? Give feedback.
-
IMO it would be beneficial if age allowed extracting the symmetric key that's used for the bulk encryption, and using that key to decrypt an age encrypted file.
My use case for this feature is restoring backups that are dozens to hundreds of gigabytes in size on a remote server, where I do not want to make my private SSH key available to that server. I could work around this by encrypting the backups to an additional key pair that can be shared with the otherwise untrusted server for backup restore purposes, but IMO that would negate some of the desirable security properties of encrypting to the public SSH keys of the server administrators.
My expectation would be that with this feature, I could simply download the age header of the encrypted file to my laptop, use age to extract the symmetric encryption key using my private SSH key, and then use that symmetric key to decrypt the age encrypted backup file on the remote server.
Beta Was this translation helpful? Give feedback.
All reactions