Xceed Zip Compression Library Documentation
EncryptionPassword_property (Xceed Compression control)
Xceed Compression control reference > Xceed Compression control properties > EncryptionPassword_property (Xceed Compression control)

Description

The EncryptionPassword property contains the case-sensitive password to be used for encrypting or decrypting data with the Compress and Uncompress methods.

If the EncryptionPassword property is left empty before executing the Compress method, encryption will not be applied. If the data you are uncompressing was compressed with an encryption password, then the EncryptionPassword property must contain a valid decryption password for the data to uncompress, otherwise an error will be returned.

Passwords can be up to 79 characters long.

Data type

String

Default value

Empty

Declaration (DLL API)  

UINT XcGetEncryptionPassword( HXCEEDCMP hComp, TCHAR* pszEncryptionPassword , UINT uMaxLength )
void XcSetEncryptionPassword( HXCEEDCMP hComp, const TCHAR* pszValue )

Browsable

Yes

Remarks

The encryption algorithm used by Xceed Zip Compression Library is the same one used by the PKZIP 2.04g program. This type of encryption can resist attacks by amateurs if the password is well chosen and long enough (at least 16 characters) but it will probably not resist attacks by determined users or experts. Therefore, we suggest that you always use long passwords, and when possible, do not rely solely on this encryption system to protect sensitive data.

Applicable methods

Compress, Uncompress

See Also

Creating secure passwords