Protection Property
Specifies a password protection level.
Syntax
ANSI (Cross Platform) int GetProtection();
int SetProtection(int iProtection); Unicode (Windows) INT GetProtection();
INT SetProtection(INT iProtection);
Possible Values
PPT_NONE(0),
PPT_LOW(1),
PPT_NORMAL(2),
PPT_HIGH(3)
@property (nonatomic,readwrite,assign,getter=protection,setter=setProtection:) int protection; - (int)protection; - (void)setProtection:(int)newProtection;
Possible Values
PPT_NONE(0),
PPT_LOW(1),
PPT_NORMAL(2),
PPT_HIGH(3)
#define PID_PGPWRITER_PROTECTION 27 SECUREBLACKBOX_EXTERNAL void* SECUREBLACKBOX_CALL SecureBlackbox_PGPWriter_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); SECUREBLACKBOX_EXTERNAL int SECUREBLACKBOX_CALL SecureBlackbox_PGPWriter_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
0
Remarks
This property specifies the complexity of key derivation function for password-protected documents.
Allowed values:
pptNone | 0 | Key is not encrypted |
pptLow | 1 | Only the password hash is used to derive the secret key |
pptNormal | 2 | Password hash with salt is used to derive the secret key |
pptHigh | 3 | Hash from multiple passwords and salt are used for key derivation |
Data Type
Integer