IPWorks OpenPGP 2020 Python Edition

Questions / Feedback?

on_recipient_info Event

Fired for each recipient key of the encrypted message.


class PIMAPRecipientInfoEventParams(object):
  def key_id() -> str: ...
  def public_key_algorithm() -> str: ...

# In class PIMAP:
def on_recipient_info() -> Callable[[PIMAPRecipientInfoEventParams], None]: ...
def on_recipient_info(event_hook: Callable[[PIMAPRecipientInfoEventParams], None]) -> None: ...


This event fires when the decrypt or decrypt_and_verify_signature method is called.

KeyId is the Id of the key used to encrypt the message. If a subkey was used to encrypt the message this will be the Id of that subkey. It is the hex-encoded, 4- or 8-byte Id of the key. It is the same as the last 4 or 8 bytes of the fingerprint. For instance:

This can be used to identify the correct key to specify in keys. keys can be set from within this event as this event fires directly before the decryption process begins.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks OpenPGP 2020 Python Edition - Version 20.0 [Build 8161]