Go Back   Computer Forums > Welcome To Computer Forums .org > Social Lounge | Off Topic
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 04-21-2009, 02:44 PM   #1
Fully Optimized
 
vampist's Avatar
 
Join Date: Oct 2008
Location: USA
Posts: 2,404
Default Cryptography

I was thinking about this when I was bored at college with nothing to do..
Here is a link talking about the common ophcrack and rainbow tables.
Link

I was reading some of the comments and I thought of a way for salts and stuff.. look..


/**
Everything with a $ in front is a variable. Meaning $F could equal "one" or "ball".
The md5 function is used here. md5 is a hash algorithm it will give you the hash of what ever is in the ( ).
The Variable SALT is equal to a really long random bunch of numbers, letters, and symbols. It helps stop the hacker from using Rainbow tables or a "brute force" type of action of reversing the hash.
Where it says While ( ) that is a LOOP action. Meaning When (code) there is true { code here } will continue to execute over and over again. Now you will see the variable i is at the bottom of the while with ++ after this means to add 1 to the current number equalling i. e.g. $i + 1 = 1,2,3,4,5,6,7,8,9,10 etc.
In php which that is what the code is, the symbol "." or period means AND So $username . $password would be jesse1234 if the username was jesse and password 1234.
**/


$Hash-01 = md5 ( $username . $SALT . $entered_password );
$Hash-02 = md5 ( $Hash-01 . $SALT2 );
$Hash-03 = md5 ( $Hash-02 );
$Hash = $Hash -03;

OR

Not sure how ophcrack runs exactly. (I know the basic)

But what if you did something like this?

$Hash = md5 ( $SALT . $entered_password )
While ( $i <= "10" ) {
$Hash = md5 ( $Hash );
$i++
}
Thus leaving it encrypted 10 times over from the original hash..
Lol.. Got into code mode and almost wrote // before thus..



Just thinking of this thought I would through the idea out see what you guys had to say.
__________________

vampist is offline   Reply With Quote
Old 04-21-2009, 04:07 PM   #2
Fully Optimized
 
63083's Avatar
 
Join Date: Dec 2008
Posts: 2,129
Default Re: Cryptography

I wish I understood codeing.
__________________

__________________
XPEX Vortex 3620 Mid Tower, Rosewill 450 Watt PSU, MSI P6N SLI Platinum 650i, Intel Celeron D 356, 2GB G.SKILL DDR2 800, Western Digital 40GB, (2) EVGA 7950GT 256MB Video Cards in SLI, HP DVD Multi-Burner, Windows XP.
63083 is offline   Reply With Quote
Old 04-21-2009, 04:09 PM   #3
Fully Optimized
 
vampist's Avatar
 
Join Date: Oct 2008
Location: USA
Posts: 2,404
Default Re: Cryptography

Quote:
Originally Posted by 63083 View Post
I wish I understood codeing.
Let me add some comments so you can understand what the above says.
vampist is offline   Reply With Quote
Old 04-21-2009, 04:13 PM   #4
Golden Master
 
DJ-CHRIS's Avatar
 
Join Date: Apr 2006
Posts: 5,203
Send a message via AIM to DJ-CHRIS Send a message via MSN to DJ-CHRIS Send a message via Yahoo to DJ-CHRIS
Default Re: Cryptography

You know ophcrack publishes it's source code so you can see exactly what it does?
DJ-CHRIS is offline   Reply With Quote
Old 04-21-2009, 04:23 PM   #5
Fully Optimized
 
vampist's Avatar
 
Join Date: Oct 2008
Location: USA
Posts: 2,404
Default Re: Cryptography

Quote:
Originally Posted by DJ-CHRIS View Post
You know ophcrack publishes it's source code so you can see exactly what it does?
I did not know that.. Cool. Thanks for the info!
vampist is offline   Reply With Quote
Old 04-21-2009, 04:26 PM   #6
Fully Optimized
 
63083's Avatar
 
Join Date: Dec 2008
Posts: 2,129
Default Re: Cryptography

Thanks for explanation vamp.
__________________
XPEX Vortex 3620 Mid Tower, Rosewill 450 Watt PSU, MSI P6N SLI Platinum 650i, Intel Celeron D 356, 2GB G.SKILL DDR2 800, Western Digital 40GB, (2) EVGA 7950GT 256MB Video Cards in SLI, HP DVD Multi-Burner, Windows XP.
63083 is offline   Reply With Quote
Old 04-21-2009, 04:52 PM   #7
Fully Optimized
 
vampist's Avatar
 
Join Date: Oct 2008
Location: USA
Posts: 2,404
Default Re: Cryptography

Quote:
Originally Posted by 63083 View Post
Thanks for explanation vamp.
Welcome.
vampist is offline   Reply With Quote
Old 04-21-2009, 06:04 PM   #8
Fully Optimized
 
Š88's Avatar
 
Join Date: May 2005
Posts: 4,775
Send a message via MSN to Š88
Default Re: Cryptography

why only 10 iterations? Why not 100? or 1000? Probably any higher will start getting really cost inefficient if 1000 isn't already.

Oh also, your code won't work the way you want it to. I just saw that the same line md5($Hash) is just going to be stored in $F over and over. It's not actually running the function each time and storing the results to be run in the next iteration.

hold on let me figure this out...

maybe like this?
Code:
$Hash = md5 ( $SALT . $entered_password )
While ( $i <= "10" ) {
$Hash = md5 ( $Hash );
$i++
}
Forgive me, i don't know the language you're coding this in. I'm assuming you can do this in PHP.

I think I see what you were trying to do. You thought that $Hash is storing the function md5($SALT . $entered_password) but it is only storing the results returned by that function.
__________________
Killing under the cloak of war is no different than murder

Kein Alkohol ist auch keine Lösung!
Š88 is offline   Reply With Quote
Old 04-21-2009, 08:02 PM   #9
Fully Optimized
 
vampist's Avatar
 
Join Date: Oct 2008
Location: USA
Posts: 2,404
Default Re: Cryptography

Ah I see the correction yes this is what I meant. I wrote it quickly...

So what do you guys think?
vampist is offline   Reply With Quote
Old 04-22-2009, 05:35 PM   #10
Site Team
 
David Lindon's Avatar
 
Join Date: Dec 2002
Posts: 15,233
Default Re: Cryptography

Thats a great article there.

Everyone must change their passwords to passphrases on CF!! lol
__________________

__________________
[url=http://www.LNXPS.NET]LNXPS.NET - The XPS Library]
David Lindon is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 01:08 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0