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

    Class OpenPgpJsEngine

    The default OpenPgpEngine, backed by OpenPGP.js.

    Implements

    Index
    • Parse one or more public keys from armored text or binary key data.

      Parameters

      • input: string | Uint8Array<ArrayBufferLike>

      Returns Promise<PublicKey[]>

    • Parse one or more (possibly locked) private keys from armored text or binary key data.

      Parameters

      • input: string | Uint8Array<ArrayBufferLike>

      Returns Promise<PrivateKey[]>

    • Unlock a locked private key with the given passphrase.

      Parameters

      • key: PrivateKey
      • passphrase: string

      Returns Promise<PrivateKey>

    • Produce an ASCII-armored detached signature over data.

      Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Produce an ASCII-armored encrypted (optionally signed) message.

      Parameters

      • data: Uint8Array
      • encryptionKeys: PublicKey[]
      • options: {
            cipher?: EncryptionAlgorithm;
            signingKeys?: PrivateKey[];
            digestAlgo?: DigestAlgorithm;
        } = {}

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Decrypt an ASCII-armored message and, if verification keys are supplied, verify its signatures.

      Parameters

      • armored: Uint8Array
      • decryptionKeys: PrivateKey[]
      • OptionalverificationKeys: PublicKey[]

      Returns Promise<OpenPgpDecryptResult>