Click here to Skip to main content
15,894,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..

Can anyone of you help me,I want to use Brute Force Attack for encrypting excel password,how do i have to proceed for doing this..

Thanks and Regards
Nidhi :)
Posted
Comments
Sergey Alexandrovich Kryukov 16-Mar-11 5:06am    
Poor Excel :-)
--SA
Cridbro 18-Apr-16 4:53am    
You could use an excel component for .NET, it is able to read your excel files with C# in memory. Even the protected (encrypted) ones, however for them you need to provide password (see here).
So what you could do is use a brute force iteration for password combinations and for each use something like the following:

string password = "ABC";
bool success;

try
{
var ef = ExcelFile.Load("Sample.xlsx", new XlsxLoadOptions() { Password = password });
success = true;
}
catch(FileFormatException)
{
success = false;
}

You do this until "success" is "true".

Do you mean "I want to use Brute Force Attack for decrypting excel password"?

If so, then you are asking on the wrong site: we are more concerned with keeping script kiddies like you out of sensitive data, than helping them to get into it.

If you don't, then I think you have your terms mixed up!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 16-Mar-11 5:07am    
This is what I would expect from you, my 5.
--SA
It rather depends on what it is for.

Is it a case of you have a password locked Excel file and the password has been locked?

Coz if so it is virtually impossible to break unless you sit and think about the person who passworded it.
 
Share this answer
 
Comments
tanu misra 16-Mar-11 5:31am    
ya i want to open my excel file which is locked by someone..
Espen Harlinn 16-Mar-11 19:11pm    
Sometimes it even works out quite nicely, my 5
Here[^]
 
Share this answer
 
Comments
tanu misra 16-Mar-11 7:02am    
Thank you Dalek Dave :)
Le@rner 23-Dec-13 23:42pm    
hi can u please send me solution u got for this.

thanks in advance.
Dalek Dave 16-Mar-11 7:08am    
If you like you could vote me a 5!
Espen Harlinn 16-Mar-11 19:11pm    
Good link - sometimes people misplace or forget their passwords

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900