Current location: Hot Scripts Forums » Programming Languages » PHP » Password encoding/decoding function (Expert PHP)


Password encoding/decoding function (Expert PHP)

Reply
  #21 (permalink)  
Old 09-18-09, 01:48 AM
deadManN deadManN is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
i request for small program .right?!
i say if you made that for me with two text box, i was atlast enable to check if salt attached to password field or it's date, since we had no other field like salt.
so if pasword was 675e62re472rw59dshseg i check if the first number (here 5) is salt or not, or its in other field, and find that field.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #22 (permalink)  
Old 09-18-09, 01:53 AM
deadManN deadManN is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #23 (permalink)  
Old 09-19-09, 08:06 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by deadManN View Post
i request for small program .right?!
i say if you made that for me with two text box, i was atlast enable to check if salt attached to password field or it's date, since we had no other field like salt.
The code shows the salt being applied to the password field. The date is not used in conjunction with the password or the salt.

Also, a test form won't help you in this case, since you'd need to know the password and the salt in order to be able to recreate the final hash. If you knew what those two items were, you wouldn't need the test form.

$salt = random(6);
$password = md5(md5($password).$salt);


This clearly shows that first they create a random salt, then they append the salt to the password and MD5 it, then they MD5 the result again. The date isn't referenced in there at all.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #24 (permalink)  
Old 09-19-09, 08:24 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
You could also use a password reset to look at the password and the encoding.

Last edited by wirehopper; 09-19-09 at 08:26 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #25 (permalink)  
Old 09-19-09, 10:13 AM
deadManN deadManN is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
can we use their java code to encode and decode, like when they call java function to do that , we we call those java in other language , but we need just to know which file encode and decode the password
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #26 (permalink)  
Old 09-19-09, 11:47 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
If you have an existing installation, and access to the database, run through the password recovery process, or change the password, and then look at the database.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #27 (permalink)  
Old 09-20-09, 01:50 AM
deadManN deadManN is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
it's not the matter, i wanna to get advantage of forum user table, and use it in platform, so other user can connect with their exist user, and don't need to make any other username, and also we can give them point via forum ability , and mix their process
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #28 (permalink)  
Old 09-20-09, 10:23 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Using the password recovery process may help you understand how the password is encoded, so you can do what you want to do.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #29 (permalink)  
Old 09-26-09, 12:31 AM
deadManN deadManN is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
lol, pass recovery just put new password, not same password from before
<srry for delat, i were on vacation>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #30 (permalink)  
Old 09-27-09, 01:03 AM
Jcbones Jcbones is offline
Aspiring Coder
 
Join Date: Mar 2009
Location: North Carolina, USA
Posts: 516
Thanks: 5
Thanked 47 Times in 44 Posts
A more intelligent person than myself would take MY password, and append every six digit number that I can find on my user row in a sequence like.

echo md5(md5('bigSexy') . '123456');

and see if the hash matches.

But, alas, I'm not that smart...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
advanced php function soloWebDev PHP 6 05-09-07 11:47 PM
PHP Security alert: PHP mail() Function Lets Remote Users Inject E-mail Headers darkerstar PHP 4 04-29-07 08:14 PM
Help with php mail function maverickminds PHP 2 08-04-06 12:51 AM
Interspire is looking for a highly motivated PHP expert 2 join our young dynamic team Interspire Job Offers & Assistance 0 06-16-05 07:38 PM
edit php in Squirrelmail jrcortrightiii PHP 1 07-10-03 03:08 PM


All times are GMT -5. The time now is 01:43 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.