IPWorks Encrypt 2020 C++ Edition

Questions / Feedback?

Salt Property

The cryptographic salt.

Syntax

ANSI (Cross Platform)
int GetSalt(char* &lpSalt, int &lenSalt);
int SetSalt(const char* lpSalt, int lenSalt); Unicode (Windows) INT GetSalt(LPSTR &lpSalt, INT &lenSalt);
INT SetSalt(LPCSTR lpSalt, INT lenSalt);
@property (nonatomic,readwrite,assign,getter=salt,setter=setSalt:) NSString* salt;
- (NSString*)salt;
- (void)setSalt:(NSString*)newSalt;

@property (nonatomic,readwrite,assign,getter=saltB,setter=setSaltB:) NSData* saltB; - (NSData*)saltB; - (void)setSaltB:(NSData*)newSalt;
#define PID_PBKDF_SALT 6

IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_PBKDF_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_PBKDF_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

This property specifies the salt used during key creation.

It is recommended to provide a salt value of at least 64 bits in length. A common length is 128 bits. It is also recommended that the salt value be randomly chosen.

Data Type

Binary String

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