Options
All
  • Public
  • Public/Protected
  • All
Menu

The private part of the backup key, the one used for recovery.

Hierarchy

  • BackupDecryptionKey

Index

Constructors

Properties

megolmV1PublicKey: MegolmV1BackupKey

Get the public part of the backup key.

Methods

  • decryptV1(ephemeral_key: string, mac: string, ciphertext: string): string
  • Try to decrypt a message that was encrypted using the public part of the backup key.

    Parameters

    • ephemeral_key: string
    • mac: string
    • ciphertext: string

    Returns string

  • free(): void
  • Returns void

  • toBase64(): string
  • Convert the backup decryption key to a base 64 encoded string.

    Returns string

  • Create a new random [BackupDecryptionKey].

    Returns BackupDecryptionKey

  • Try to create a [BackupDecryptionKey] from a base 64 encoded string.

    Parameters

    • key: string

    Returns BackupDecryptionKey

Generated using TypeDoc