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


Password encoding/decoding function (Expert PHP)

Reply
  #11 (permalink)  
Old 09-15-09, 10:39 PM
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
tnx, and just one more thing, if my project be based on java, what diff will be on this code, what i need to include, and how to make this on there?
I don't know Java, but perhaps someone here who is familiar with it would be able to help you with that.
__________________
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
  #12 (permalink)  
Old 09-16-09, 11:43 AM
deadManN deadManN is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
tyvm, BTW, it's almost enough.
tnx again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #13 (permalink)  
Old 09-16-09, 12:06 PM
deadManN deadManN is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
some thing's wrong!
where's that salt number?
http://img87.imageshack.us/i/97170767.jpg/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #14 (permalink)  
Old 09-16-09, 05:03 PM
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
I believe that would be the 'seques' field.
__________________
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
  #15 (permalink)  
Old 09-17-09, 01:22 AM
deadManN deadManN is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
it was empty on DB, can u dl the forum , and check, i think the only random last number can be "reg date number" any we can go in neg way, i mean instead of encode try to decode, and see which number give us the resault, can you make me a small file on php, give 1 number and one string , and then decode or encode that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #16 (permalink)  
Old 09-17-09, 11:04 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
it was empty on DB, can u dl the forum , and check, i think the only random last number can be "reg date number" any we can go in neg way, i mean instead of encode try to decode, and see which number give us the resault, can you make me a small file on php, give 1 number and one string , and then decode or encode that?
I'm sorry, I really don't have the time to download the forum again, set it up, and test it.

1) If you have people registered then you should have entries in the salt ('seques') field.

2) I'm not sure what you mean by "i think the only random last number can be "reg date number"".

3) Finally, as mentioned before, you *cannot* decode the MD5 results. All you can do is encode the data and see if it matches the already-produced hash. It's not possible to derive the password from the MD5 hash and salt.
__________________
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
  #17 (permalink)  
Old 09-17-09, 12:13 PM
deadManN deadManN is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
the field you told me was empty, and i want to use member table from forum in a platform, that's my matter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #18 (permalink)  
Old 09-17-09, 01:34 PM
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
the field you told me was empty, and i want to use member table from forum in a platform, that's my matter
If you had anyone registered, then you should have entries in the salt ('seques') field. If you don't, then you won't.

In short, the field won't be populated until someone registers, once they do then the code that was shown earlier will populate the salt field (assuming you use the same code to help generate the password hash).
__________________
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
  #19 (permalink)  
Old 09-17-09, 03:54 PM
deadManN deadManN is offline
Newbie Coder
 
Join Date: Sep 2009
Posts: 60
Thanks: 1
Thanked 0 Times in 0 Posts
the told i told you to give me that's cuz i want to check several thing, if the salt combined with password in the front or end of that, or if it's register date, cuz they keep the date as number not as date forumat.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #20 (permalink)  
Old 09-18-09, 12:02 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
the told i told you to give me that's cuz i want to check several thing, if the salt combined with password in the front or end of that, or if it's register date, cuz they keep the date as number not as date forumat.
I'm sorry... I honestly have no idea what this means or what you're trying to say.
__________________
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
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:44 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.