AES encrypted ZIP file?

31 views
Skip to first unread message

Beiley

unread,
May 29, 2007, 8:26:44 PM5/29/07
to Crypto++ Users
Hello,

I'm very new to Crypto++, and am trying to figure out if it is
possible to create an AES encrypted ZIP file? I see you can do an AES
encryption and you can create a zip file, but can/how would you create
a zip file using the AES encryption? Is this possible with Crypto++?
If so, could I get a hint on how to do this?

Thank you,
Mark
http://www.beiley.com

Jeffrey Walton

unread,
May 30, 2007, 10:56:34 AM5/30/07
to Beiley, Crypto++ Users
Hi Beiley,

Typically you would compress, then encrypt. The compression develops entropy.

Jeff

Beiley

unread,
May 30, 2007, 11:27:38 AM5/30/07
to Crypto++ Users
Hi Jeff,

Thanks for the response. I understand that I can encrypt and then
create a zip of these encrypted files, but I believe when you un-zip
this, you'll just get the encrypted files. I'd like an AES encrypted
ZIP file, which has the special information in it, so that when you
unzip, you get prompted for the password, and it not only unzips, but
also decrypts the original file. I believe this is a slightly
modified format of a zip file, and documented here:

http://www.winzip.com/aes_info.htm

I'm getting the idea that Crypto++ really doesn't support this?

Thanks,
Mark
http://www.beiley.com

Jeffrey Walton

unread,
May 30, 2007, 12:59:17 PM5/30/07
to Beiley, Crypto++ Users
Hi Mark,

The only archive format that I am aware of in Crypto++ is Gzip.

Jeff

Chris Morgan

unread,
May 30, 2007, 11:48:32 AM5/30/07
to Beiley, Crypto++ Users
On 5/30/07, Beiley <mbe...@gmail.com> wrote:
>

Crypto++ is a library that provides cryptographic functions. Of course
it doesn't support zipping, interactive user input, GUI interaction
etc, that's the stuff that goes into the program that uses crypto++.

In your case you would need to have code or a library to perform the
zip functions, code to retrieve a passphrase and pass this to crypto++
and code to perform the encryption/decryption.

Chris

Reply all
Reply to author
Forward
0 new messages