Security, SHA-1 and co.
Posted: Fri Mar 26, 2010 10:29 pm
Well I though that might be interesting for some people to talk about security, passes encryption, "hackerz" on steroidz and so on...
How do passwords are encrypted?
Passwords are encrypted in SHA-1 in L2j sql databases. In few words it's like zomfg-impossible to decrypt.
If you want to read more about that: http://en.wikipedia.org/wiki/SHA_hash_functions
So as example, if your password is "123456", it will be encrypted asin the database.
How can I decrypt that?
With some mighty tools that I won't share, mainly because the point of that topic is not to hack but to know more about security, secondly because you can Google it, you can use the GPGPU power of your graphic card to "decrypt" it.
Most of the time ATI gives better results to hack, while NVIDIA's CUDA is better for CoreAVC or Adobe's softwares (CS5 shitstorm incoming) for example.
How do "decrypters" work?
They try every password combinations until it will find out which one gives the same encryption as asked and ta-da!
Example:

In this example I hacked the password 123456 in less than 1 second, with an average speed of 394.3 MILLIONS of passwords tryed per second. I usually can go around 410 Millions of pass per second.
Are you telling me that SHA-1 encryption is not safe at all?
It is, if you are not using a retarded password.
Actually, it's all about mathematics now:
To decrypt a password that contains both small letters and digits (36 different characters) and that is 8 characters long, the "decrypter" has to try 36^8 different combinations = 2 821 109 907 456 different combinations
Assuming you have an hacking speed of 400 Millions of pass per second, it will take
(2 821 109 907 456)/(400 000 000) = 7 052,77477 seconds = ~2 hours to try every combinations, unless it find out the password before the end.
Examples of different password combination and time to hack it at the speed of 400Mpps.
Only small letters, 8 characters long:
208 827 064 576 different passwords
~9 minutes
Only small letters, 9 characters long:
5.42950368 × 10^12 different passwords
~4 hours
Only small letters, 10 characters long:
1.41167096 × 10^14 different passwords
~100 hours
Small letters + digits, 7 characters long:
78 364 164 096 different passwords
~3 minutes
Small letters + digits, 8 characters long:
2 821 109 907 456 different passwords
~2 hours
Small letters + digits, 9 characters long:
1.01559957 × 10^14 different passwords
~70 hours
Small letters + capital letters, 7 characters long:
1 028 071 702 528 different passwords
~43 minutes
Small letters + capital letters, 8 characters long:
5.34597285 × 10^13 different passwords
~37 hours
I think it is enough to give you an idea of what kind of password you shall use.
Of course if your attacker knows how your password look like, he can guess what letters/digits he should use instead of whole alphabet, and how much characters long it should be, which shortens the time of decrypting a lot!
There is another point I'd like to talk about:
Hacking is hard.
Mistakes are easy.
In my case I "hacked" a server's sql password without doing anything special. I also read some sql tables of its database while my IP was not allowed to enter when using navicat.
A simple browser was enough. (Chrome <3)
How I did that? Well I just entered the IP of the host in the address bar, there was some files with .php1 files showing the passwords to the whole world and there was some kind of mysql manager on the same IP.
So yeah I did hacked some passwords, yet I had NO hacking knowledge. A brain, a browser and Google are enough.
I hope you liked it ;D
How do passwords are encrypted?
Passwords are encrypted in SHA-1 in L2j sql databases. In few words it's like zomfg-impossible to decrypt.
If you want to read more about that: http://en.wikipedia.org/wiki/SHA_hash_functions
So as example, if your password is "123456", it will be encrypted as
Code: Select all
fEqNCco3Yq9h5ZUglD3CZJT4lBs=
How can I decrypt that?
With some mighty tools that I won't share, mainly because the point of that topic is not to hack but to know more about security, secondly because you can Google it, you can use the GPGPU power of your graphic card to "decrypt" it.
Most of the time ATI gives better results to hack, while NVIDIA's CUDA is better for CoreAVC or Adobe's softwares (CS5 shitstorm incoming) for example.
How do "decrypters" work?
They try every password combinations until it will find out which one gives the same encryption as asked and ta-da!
Example:

In this example I hacked the password 123456 in less than 1 second, with an average speed of 394.3 MILLIONS of passwords tryed per second. I usually can go around 410 Millions of pass per second.
Are you telling me that SHA-1 encryption is not safe at all?
It is, if you are not using a retarded password.
Actually, it's all about mathematics now:
To decrypt a password that contains both small letters and digits (36 different characters) and that is 8 characters long, the "decrypter" has to try 36^8 different combinations = 2 821 109 907 456 different combinations
Assuming you have an hacking speed of 400 Millions of pass per second, it will take
(2 821 109 907 456)/(400 000 000) = 7 052,77477 seconds = ~2 hours to try every combinations, unless it find out the password before the end.
Examples of different password combination and time to hack it at the speed of 400Mpps.
Only small letters, 8 characters long:
208 827 064 576 different passwords
~9 minutes
Only small letters, 9 characters long:
5.42950368 × 10^12 different passwords
~4 hours
Only small letters, 10 characters long:
1.41167096 × 10^14 different passwords
~100 hours
Small letters + digits, 7 characters long:
78 364 164 096 different passwords
~3 minutes
Small letters + digits, 8 characters long:
2 821 109 907 456 different passwords
~2 hours
Small letters + digits, 9 characters long:
1.01559957 × 10^14 different passwords
~70 hours
Small letters + capital letters, 7 characters long:
1 028 071 702 528 different passwords
~43 minutes
Small letters + capital letters, 8 characters long:
5.34597285 × 10^13 different passwords
~37 hours
I think it is enough to give you an idea of what kind of password you shall use.
Of course if your attacker knows how your password look like, he can guess what letters/digits he should use instead of whole alphabet, and how much characters long it should be, which shortens the time of decrypting a lot!
There is another point I'd like to talk about:
Hacking is hard.
Mistakes are easy.
In my case I "hacked" a server's sql password without doing anything special. I also read some sql tables of its database while my IP was not allowed to enter when using navicat.
A simple browser was enough. (Chrome <3)
How I did that? Well I just entered the IP of the host in the address bar, there was some files with .php1 files showing the passwords to the whole world and there was some kind of mysql manager on the same IP.
So yeah I did hacked some passwords, yet I had NO hacking knowledge. A brain, a browser and Google are enough.
I hope you liked it ;D