mimekit-ts - v1.0.0
    Preparing search index...

    Class OpenPgpContext

    An in-memory OpenPGP (PGP/MIME) cryptography context.

    Index
    • get prepareBeforeSigning(): boolean

      Whether MultipartSigned should prepare (7bit/CRLF) the entity before signing.

      Returns boolean

    • Whether this context supports the given MIME protocol.

      Parameters

      • protocol: string

        The protocol content-type (e.g. application/pgp-signature).

      Returns boolean

    • Import public and/or secret keys from armored text or binary key data.

      Parameters

      • input: string | Uint8Array<ArrayBufferLike>

      Returns Promise<void>

    • Add a secret key (and its public half) to the keyring.

      Parameters

      • key: PrivateKey

      Returns void