How do you work out how long it would take to brute force a file?

Caporegime
Joined
12 Mar 2004
Posts
29,962
Location
England
If 128bit encryption has 2^128 possible combinations of keys, how come that shorter passwords are cracked more quickly using brute force? And how do you work out how much faster? Or is that using a different method of cracking?
 
Energize said:
If 128bit encryption has 2^128 possible combinations of keys, how come that shorter passwords are cracked more quickly using brute force? And how do you work out how much faster? Or is that using a different method of cracking?

Brute force will usually just go through incrementally. Say we just use numbers...

If As password is 12
and Bs passwrod is 142425232
Which do you think will be guessed first?

The 128bit key will be created from an algorithm that uses the password. So if the password can be guessed easily, the 128bit key can be discovered quickly. If you have an alphanumeric password (single case characters), adding each extra character will make the password 36 times stronger.
 
Where does the 2^128 combinations come into encryption if all brute force does is guess the password where there is a much lower number of combinatons?

To have the full 2^128 combinations wouldn't you need a password long enough to allow for 2^128 combinations of it? Would say encrypting a file with a 256bit cipher be any more secure than a 128bit one if the password was only 10chars long?
 
Last edited:
Back
Top Bottom