Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

October 26, 2005

Checking password of Zip file.

Question:

Is there any way in Visual Basic code and using your zip ActiveX to checks if a possible zip passwords is correct without having to call one of your unzip methods? I simply want to write a routine that will check if the zip password a user types into a textbox is the correct password for a zip file without having to unzip any of the files inside the zip file.

Answer:

Yes, to open a password-protected or AES encrypted Zip, you must first call zipObject.SetPassword prior to calling zipObject.OpenZip. The OpenZip method will fail if the incorrect password is provided.


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.