Crypto Lib
    Preparing search index...

    Function revoke

    • Produces a revocation for the shipped key pair and persists the revoked key material to disk. The previous implementation called .toString() on a WriteStream, which wrote the literal string "[object Object]" to disk — the real key was never persisted.

      Parameters

      • data: dataRevoke

        Revocation parameters.

        Parameters for OpenPGP key revocation.

        • passphrase: string

          Passphrase to unlock the private key for revocation.

        • flag: number

          Revocation reason flag (0=unspecified, 1=superseded, 2=compromised, 3=retired, 32=uid-invalid).

        • reason: string

          Human-readable revocation reason string.

      Returns Promise<ArmoredKeyResult>

      • The result of openpgp.revokeKey.