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

Thread Tools Search this Thread Display Modes
Old 04-22-2009, 04:44 PM   #11
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: Cryptography

Originally Posted by 88 View Post
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?
$Hash = md5 ( $SALT . $entered_password )
While ( $i <= "10" ) {
$Hash = md5 ( $Hash );
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.
you'd need to use

while($i <= 10){

and because otherwise it's looking for $i as a string and not an integer

j03 is offline   Reply With Quote
Old 04-22-2009, 05:19 PM   #12
Fully Optimized
vampist's Avatar
Join Date: Oct 2008
Location: USA
Posts: 2,404
Default Re: Cryptography

... No you don't..

Link of ownage < click

vampist is offline   Reply With Quote

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 09:35 AM.

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