How much file bloat does age-encryption give a file? #618
-
|
I'm trying to implement age file encryption through SOPS into a storage solution that uses QR Codes (weird, I know). As such, I would like to predict the size of any given file post-encryption accurately so I know what version of QR code I need to stuff the data into (assuming it can fit at all). So, does anyone know where I can find out how much extra bloat age encryption adds to a file? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
About a year late, but assuming a single X25519 stanza, and that my math is correct, it's 170 bytes for the header, and then the overhead for the actual encrypted data is 16 + (ceil(Size/64 KiB) * 12). If you're encoding in QR codes, the max you'll ever fit in one is less than a single block, so you'll always have a 198 byte overhead. |
Beta Was this translation helpful? Give feedback.
-
|
Should the description here be updated? Currently it says: Whereas when using HybridRecipients, the ciphertext reports something like: |
Beta Was this translation helpful? Give feedback.
Almost! From the new age-inspect tool: