Crypto Lib
    Preparing search index...

    Function verify

    • Verifies a clear-signed message, or a message and its detached signature, against the supplied public keys.

      Parameters

      • data: dataVerify

        Verification parameters.

        Parameters for OpenPGP signature verification.

        • date: Date

          Date to use for signature validity checks instead of the current time.

        • message: string

          Armored clear-signed message, or the signed text when signature is set.

        • Optionalsignature?: string

          Base64-encoded armored detached signature over message.

        • verificationKeys: string | string[]

          Base64-encoded armored public key(s) to verify the signature against.

      Returns Promise<PgpVerifyResult>

      • Whether every signature verified.

      When the message is not clear-signed and no signature is given, or a key or signature cannot be read.