Passphrase Property
Specifies a message decryption password.
Syntax
ANSI (Cross Platform) char* GetPassphrase();
int SetPassphrase(const char* lpszPassphrase); Unicode (Windows) LPWSTR GetPassphrase();
INT SetPassphrase(LPCWSTR lpszPassphrase);
@property (nonatomic,readwrite,assign,getter=passphrase,setter=setPassphrase:) NSString* passphrase; - (NSString*)passphrase; - (void)setPassphrase:(NSString*)newPassphrase;
#define PID_PGPREADER_PASSPHRASE 20 SECUREBLACKBOX_EXTERNAL void* SECUREBLACKBOX_CALL SecureBlackbox_PGPReader_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); SECUREBLACKBOX_EXTERNAL int SECUREBLACKBOX_CALL SecureBlackbox_PGPReader_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
""
Remarks
Use this property to provide a password to decrypt the data. Whether the message can be decrypted with a password is indicated by PassphraseUsed parameter of EncryptionInfo event.
Note that this is not the same as a secret key passphrase, which should be provided via KeyPassphrase property.
If this property is left empty or the assigned passphrase is incorrect, the PassphraseNeeded event will be fired to request the correct one.
Data Type
String