The key is deterministic for a given epoch + file, so re-encrypting the
same file in the same epoch produces the same key but a different
ciphertext (due to the random nonce).
The sha256, type, and filename fields of the attachment must be set.
The MIME type is canonicalized automatically.
Derives the per-file encryption key for a media file shared in a group message (MIP-04 v2).
Key derivation:
The key is deterministic for a given epoch + file, so re-encrypting the same file in the same epoch produces the same key but a different ciphertext (due to the random nonce).
The
sha256,type, andfilenamefields of the attachment must be set. The MIME type is canonicalized automatically.