SecureBlackbox 2020 C++ Edition

Questions / Feedback?

DecryptionPasswordNeeded Event

Fires when the class needs a password to decrypt the archive.

Syntax

ANSI (Cross Platform)
virtual int FireDecryptionPasswordNeeded(ArchiveWriterDecryptionPasswordNeededEventParams *e);
typedef struct {
const char *PasswordTarget;
int Cancel; int reserved; } ArchiveWriterDecryptionPasswordNeededEventParams; Unicode (Windows) virtual INT FireDecryptionPasswordNeeded(ArchiveWriterDecryptionPasswordNeededEventParams *e);
typedef struct {
LPCWSTR PasswordTarget;
BOOL Cancel; INT reserved; } ArchiveWriterDecryptionPasswordNeededEventParams;
- (void)onDecryptionPasswordNeeded:(NSString*)passwordTarget :(int*)cancel;
#define EID_ARCHIVEWRITER_DECRYPTIONPASSWORDNEEDED 3

virtual INT SECUREBLACKBOX_CALL FireDecryptionPasswordNeeded(LPSTR &lpszPasswordTarget, BOOL &bCancel);

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 DecryptionPassword property inside the event handler, or set Cancel to true to cancel the operation.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 C++ Edition - Version 20.0 [Build 8166]