KeyPassword Property
A password to generate the Key and IV .
Syntax
ANSI (Cross Platform) char* GetKeyPassword();
int SetKeyPassword(const char* lpszKeyPassword); Unicode (Windows) LPWSTR GetKeyPassword();
INT SetKeyPassword(LPCWSTR lpszKeyPassword);
@property (nonatomic,readwrite,assign,getter=keyPassword,setter=setKeyPassword:) NSString* keyPassword; - (NSString*)keyPassword; - (void)setKeyPassword:(NSString*)newKeyPassword;
#define PID_RIJNDAEL_KEYPASSWORD 6 IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_Rijndael_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_Rijndael_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
""
Remarks
When this property is set the class will calculate values for Key and IV using the PKCS5 password digest algorithm. This provides a simpler alternative to creating and managing Key and IV values directly.
The size of the Key generated is dependent on the value of KeySize.
Data Type
String