Hello my name is George ,
I want to make a program to decrypt a zip file with 128-bit AES Encryption using Brute Force and Dictionary Attack.
Because it is my first time I try to make something with the encrytpion libraries I don't know much.
Because that is an exercise they told us to use this library http://www.javamex.com/arcmexer/ because the java.util.zip is not so good.
So I want to give me some help.
Any help is welcoming.
In my opinion, trying to brute-force AES-128 is pointless unless you have a USD $100m supercomputer, and even then it will take months or years.
How do you propose a dictionary attack might work? That's something for cracking passwords, not encryption.
As an aside, java.util.zip works just fine; I've never had any problems with it. And if I needed support for other compression formats, I'd go with http://commons.apache.org/compress/
Thank you for the quick response.
Maybe I did not give to understand what I mean.
I want to make a program that will open a zip file with that decryption(128bit AES).
Next I want to choose wich way to use for the decryption (brute force or dictionary attack) , to find out the password form the encryption.Only that.And the other part of program are the exceptions.
And all of that I put it in GUI.
Sorry if I did not give you you occupy in the first post.
If you give me a code for example I would appreciate that.
Next I want to choose wich way to use for the decryption (brute force or dictionary attack) , to find out the password form the encryption.
In my opinion, while both attacks are possible, neither is likely to succeed. You can do the math on how many keys you need to try on average for a brute-force attack (a little hint: you and I will be dead before it's likely to succeed). A dictionary attack may be successful for a spectacularly bad choice of password, of course, but that seems unlikely. So, in my opinion, this project is doomed to fail; what prompted you to take it on?
It is another story why I prompt to take it now.
Simply I choose tyhis exercise.When I talked with my professor they told me , I don't care for the result (if I succed to decrypt the zip file in logical time, I deal with the exceprions).
I understand why you sai that project is doomed to fail but I must do it to get my diploma.
So if you get an example of a code to make a start send it to me , if you don't matter.
Thanks for the help.
If this is for a school project then you should be writing the code. So: what ideas have you has so far, either for the brute-force or dictionary attacks? Do you know how those work in theory? If so, where are you facing difficulties implementing them?
I want to make a program to read a zip file with a password(aes encrytpion) and I foun the password.
At first i know the password and I want to do If I write it wright.
I read a zip file but when I try to read it with encryption I take that exception.
That is the program
And the exception is:
java.util.zip.ZipException: invalid CEN header (encrypted entry)
at java.util.zip.ZipFile.open(Native Method)
Can anyone help me?
The next stage is to find out the password with brute force or dicrionary attack in zip file.