Crypto Lib
    Preparing search index...

    Function reformat

    • Reformats signature packets for the shipped key and persists the reformatted material. The previous implementation called .toString() on a WriteStream, writing the literal string "[object Object]" to disk — the actual reformatted key was never persisted.

      Parameters

      • data: dataReformat

        Reformat parameters.

        Parameters for reformatting an existing OpenPGP key.

        • date: Date

          Creation date to set on the reformatted key.

        • email: string

          New email address for the reformatted key's user ID.

        • expiration: number

          Seconds until the reformatted key expires (0 for no expiration).

        • name: string

          New display name for the reformatted key's user ID.

        • passphrase: string

          Passphrase to unlock (and re-encrypt) the private key.

        • publicKey: string

          Armored public key to reformat.

      Returns Promise<ArmoredKeyResult>

      • The result of openpgp.reformatKey.