Contents - Index - Previous - Next


OnDecrypt event

 

Applies to

TVCLUnZip component

 

Declaration

property OnDecrypt: TDecryptEvent = procedure(Sender: TObject; buffer: BytePtr; length: Integer; Password: String); of object;

 

 

Description

Define this event if you wish to perform your own encryption and decryption instead of the normal pkzip encryption. Use this with care as this is still somewhat experimental and I'm not sure how useful it is yet.  You must make all changes within the buffer sent in to you.  Treat the entire file as a stream.  Byte for byte replacement only. No additional keys can be saved.  

 

The buffer pointer that is passed in, points to  the data that is to be Decrypted.  The length (in bytes) of the buffer is passed in in the length parameter.  Do not change the buffer pointer.  Do not change the length of the buffer in any way. Essentially all that is allowed is a byte for byte replacement within the buffer.  The Password parameter contains whatever is in the Password Property

 

See Also:

  

OnEncrypt 

Password