Welcome to the Xceed Community | Help
Community Search  

Encryption with AES

Sort Posts: Previous Next
  •  11-12-2008, 3:47 AM Post no. 16802

    Encryption with AES

    Hi,

    Due to strict security requirements, I need to use the AES feature. My questions are:

    a. What other ZIP clients, besides WinZip 9 and 10, will be able to open the resultant ZIP file?

    b. Which ZIP format is the resultant ZIP file: 4.5 or 5.2 or others?

    Thanks in advance.

    Filed under:
  •  11-12-2008, 4:10 PM Post no. 16835 in reply to 16802

    Re: Encryption with AES

    a. You will need to verify yourself, but most likely 7-Zip and PKWare, and certainly others.

    b. format is 4.5 because of the Zip64 feature.


    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  11-13-2008, 5:12 AM Post no. 16846 in reply to 16835

    Re: Encryption with AES

    Thank you. I'm trying out the 45-day trial using the following code snippet:

    AbstractFile file = new DiskFile(@"d:\mytest.zip");
    if (file.Exists) { file.Delete(); }
    ZipArchive archive = new ZipArchive(file);
    archive.DefaultEncryptionMethod = EncryptionMethod.WinZipAes;
    archive.DefaultEncryptionStrength = 256;
    archive.DefaultDecryptionPassword = "This is a trial password";
    AbstractFolder source = new DiskFolder(@"d:\temp\small");
    source.CopyFilesTo(archive, true, true);

    Strangely the resultant ZIP file is not encrypted and can be opened without supplying any password. Is anything missing from the code?

    Filed under:
  •  11-13-2008, 5:16 AM Post no. 16847 in reply to 16846

    Re: Encryption with AES

    Found the bug.

    archive.DefaultDecryptionPassword = "This is a trial password";

    should be replaced by 

     archive.DefaultEncryptionPassword = "This is a trial password";

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.