The encrypted attachment can be created manually, or from the
encrypt method.
Warning: The encrypted attachment can be used only
once! The encrypted data will still be present, but the
media encryption info (which contain secrets) will be
destroyed. It is still possible to get a JSON-encoded backup
by calling EncryptedAttachment.mediaEncryptionInfo.
Decrypt an
EncryptedAttachment.The encrypted attachment can be created manually, or from the
encryptmethod.Warning: The encrypted attachment can be used only once! The encrypted data will still be present, but the media encryption info (which contain secrets) will be destroyed. It is still possible to get a JSON-encoded backup by calling
EncryptedAttachment.mediaEncryptionInfo.