on_decryption_password_needed Event
Fires when the class needs a password to decrypt the archive.
Syntax
class ArchiveWriterDecryptionPasswordNeededEventParams(object): @property def password_target() -> str: ... @property def cancel() -> bool: ... @cancel.setter def cancel(value) -> None: ... # In class ArchiveWriter: @property def on_decryption_password_needed() -> Callable[[ArchiveWriterDecryptionPasswordNeededEventParams], None]: ... @on_decryption_password_needed.setter def on_decryption_password_needed(event_hook: Callable[[ArchiveWriterDecryptionPasswordNeededEventParams], None]) -> None: ...
Remarks
Class fires this event to request a decryption password from the application when it comes across an encrypted archive or entry.
Please assign the password to decryption_password property inside the event handler, or set Cancel to true to cancel the operation.