Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SHA1 and md5 encryption
02-16-2010, 07:27 AM
Post: #1
SHA1 and md5 encryption
As i recently listed our subjects about php, i haven't seen any about encryption and hashes, so i decided to made one Smile

In this thread i will introduce you two the most common used solutions for encryption data in php... md5 and sha1...

on the very begin we need to define word hash. Hash is a structure which we get from data after few mathematical operations done on it (after it gets encrypted).

The most common ways to crypt a data in php are md5 and sha1... now we will se examples of this encryptions Smile

md5 or Message-Digest algorithm 5 is the most common used crypting way in world of web Smile hash is 128-bit size. Lets see an example:

Code:
hello - string word
5d41402abc4b2a76b9719d911017c592 - md5 value of string

sha1 or Secure Hash Algorithm is the most used method for encrypting passwords in sql bases. size of his hash is in the most cases about ~ 160-bit.
one more example:

Code:
hello - string word
aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d - sha1 value of string

in the using of this encryptions in php will be talking soon, cos it is late here, and I am sleepy Smile

Read rules Smile
[Image: legislator.png]
Find all posts by this user
Quote this message in a reply
02-16-2010, 02:34 PM
Post: #2
RE: SHA1 and md5 encryption
Mmm, these are powerful forms of encryption also something worth while checking out:
DES http://www.tropsoft.com/strongenc/des.htm

"Character is determined more by the lack of certain experiences than by those one has had."
Friedrich Nietzsche
Visit this user's website Find all posts by this user
Quote this message in a reply
02-16-2010, 08:24 PM
Post: #3
RE: SHA1 and md5 encryption
Very interesting forms of encryption i can say too. Greetz legislator !

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
03-30-2010, 07:54 AM
Post: #4
RE: SHA1 and md5 encryption
No thats the difference. SHA1/MD5 are a hash, they cannot be decrypted like DES and others. SMF uses a SHA1 hash and you can see an example in my thread in the vb section.

[Image: pgsig copy.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
03-30-2010, 08:44 AM
Post: #5
RE: SHA1 and md5 encryption
(03-30-2010 07:54 AM)FreckleS Wrote:  No thats the difference. SHA1/MD5 are a hash, they cannot be decrypted like DES and others. SMF uses a SHA1 hash and you can see an example in my thread in the vb section.

Incorrect.
Also they are great big difference between the 2 type of hashs!
MD5 and SHA1 have also been compromised.

Any hash can be cracked no matter how complexed it is just takes more complexed reversing and more processing power

Example of Offline MD5 Cracker:
http://www.oxid.it/cain.html

Example of Online MD5 Cracker:
http://www.milw0rm.com/md5/insert.php

My website
http://www.DarkHook.net

Programming Languages:
  • C++ Win32
  • MASM
Interests:
  • Reverse Engineering
  • Security
  • GameHacking
Find all posts by this user
Quote this message in a reply
03-30-2010, 12:23 PM
Post: #6
RE: SHA1 and md5 encryption
Didn't say cracked, said decrypted. There is a difference with encryption you will provide the key, this key is needed for the decryption however hashes use a general formula

[Image: pgsig copy.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
03-30-2010, 10:25 PM
Post: #7
RE: SHA1 and md5 encryption
decrypted = mathematical solution for finding a hash value
cracked = bruteforcing, dictionary attacks (mathematic logic, Permutation, variation...) Smile

I am always first try mathematical solutions... I am doing cracking only when i am desperate Smile

Read rules Smile
[Image: legislator.png]
Find all posts by this user
Quote this message in a reply
03-31-2010, 01:16 AM
Post: #8
RE: SHA1 and md5 encryption
(03-30-2010 12:23 PM)FreckleS Wrote:  Didn't say cracked, said decrypted. There is a difference with encryption you will provide the key, this key is needed for the decryption however hashes use a general formula

Thanks i do know difference between them both.
I think it's way i worded my post got you confused.

I was just pointing out it's that MD5 and SHA1 are not the most secure hash out there.

My website
http://www.DarkHook.net

Programming Languages:
  • C++ Win32
  • MASM
Interests:
  • Reverse Engineering
  • Security
  • GameHacking
Find all posts by this user
Quote this message in a reply
03-31-2010, 02:17 AM
Post: #9
RE: SHA1 and md5 encryption
The most secured hash is algorithm made by yourself Tongue Smile

Read rules Smile
[Image: legislator.png]
Find all posts by this user
Quote this message in a reply
03-31-2010, 03:56 AM
Post: #10
RE: SHA1 and md5 encryption
(03-31-2010 02:17 AM)l3g1sl4tor Wrote:  The most secured hash is algorithm made by yourself Tongue Smile
Wow one of the best quotes i have ever heard !
Is it your quote or you have heard it somewhere ?

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: