I am student doing SHA-256 algorithm encryption project hope anyone can help me to find SHA-256 formula calculate crack time by human. I wanna calculate the SHA-256 encryption break time to write one report to my lecturer, thanks :)
Printable View
I am student doing SHA-256 algorithm encryption project hope anyone can help me to find SHA-256 formula calculate crack time by human. I wanna calculate the SHA-256 encryption break time to write one report to my lecturer, thanks :)
Moved from CodeBank.
First of all, I don't understand why in particular SHA256 ? Why not MD5 wich is easier to break, but still takes at least a life time to do it.Quote:
Originally Posted by bradley83
Anyways....
The only way I know to break it is brute force. Wich unfortunatelly is the slowest method to do it.
Think about it this way.... every extra bit, it takes double the time to break it.
So, lets say you have an 8 bit encryption, that will be 2^8=256 maximum tries in order to break it, and 256 / 2 = 128 on average to break it, so that will be 2^7 = 128 average tries.
Now for 256 bit, you have 2^256 = 1.1579208923731619542357098500869e+77 maximum tries, and 2^255 = 5.7896044618658097711785492504344e+76 average tries...
With an average computer (i don't know for sure, but lets say) it's about 10000 tries / second... so then just divide the total tries by how many per second
So, 5.7896044618658097711785492504344e+76 / 10000 = 5.7896044618658097711785492504344e+72 seconds to break it...
5.7896044618658097711785492504344e+72 / 60 = 9.6493407697763496186309154173907e+70 minutes to break it
9.6493407697763496186309154173907e+70 / 60 = 1.6082234616293916031051525695651e+69 hours to break it
1.6082234616293916031051525695651e+69 / 24 = 6.7009310901224650129381357065213e+67 days to break it
6.7009310901224650129381357065213e+67 / 365 = 1.8358715315404013734077084127456e+65 years to break it...
So there you go, that's your number... (that's asuming that you can try 10000 times per second)