Options
All
  • Public
  • Public/Protected
  • All
Menu

A type to encrypt and to decrypt anything that can fit in an Uint8Array, usually big buffer.

Hierarchy

  • Attachment

Index

Constructors

Methods

Constructors

Methods

  • Decrypt an EncryptedAttachment.

    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.

    Parameters

    Returns Uint8Array

  • Encrypt the content of the Uint8Array.

    It produces an EncryptedAttachment, which can be used to retrieve the media encryption information, or the encrypted data.

    Parameters

    • array: Uint8Array

    Returns EncryptedAttachment

Generated using TypeDoc