Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
I would like a tutorial on MD5 PHP-MYSQL logins
Old 08-31-2007, 01:11 AM I would like a tutorial on MD5 PHP-MYSQL logins
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
I would like a tutorial on PHP-MYSQL logins using md5 I am going to use the same passwords as on my forum so that users can upload videos and they will be converted with FFMPEG to FLV.

So can anyone reccomend a PHP-MYSQL Login that uses md5 please?

I prefer videos that have downloadable code or videos.








*I hope this is posted in the correct area.(It's PHP related)
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
 
Register now for full access!
Old 08-31-2007, 04:27 PM Re: I would like a tutorial on MD5 PHP-MYSQL logins
Super Talker

Posts: 130
Trades: 0
http://www.swish-db.com/tutorials/view.php/tid/601
__________________
flann

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
flann is offline
Reply With Quote
View Public Profile
 
Old 08-31-2007, 04:29 PM Re: I would like a tutorial on MD5 PHP-MYSQL logins
Extreme Talker

Posts: 182
Trades: 0
simplified code to head you in the right direction:

PHP Code:
// your php code to check login
if ( $HTTP_POST_VARS )
{
  
$username $HTTP_POST_VARS['username'];

  
$password $HTTP_POST_VARS['password'];

  
$mdpw md5 $password );

  
$sql "SELECT * FROM login WHERE login_username = '" $username "' AND  login_password = '" $mdpw "'";

  
// if that sql query gets results, then the un/pw match in your db.
}

// your login form
<form name="login" action="" method="post">

  
Username: <input type="text" name="username" />

  
Password: <input type="password" name="password" />

  <
input type="submit" name="submit" value="log in sucka!">

</
form
bhgchris is offline
Reply With Quote
View Public Profile
 
Old 09-01-2007, 12:06 PM Re: I would like a tutorial on MD5 PHP-MYSQL logins
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Isnt $_POST['username'] suposed to be much better than $HTTP_POST_VARS[]
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 09-02-2007, 12:02 AM Re: I would like a tutorial on MD5 PHP-MYSQL logins
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Consider using sha1 instead of md5. It's more secure.

PHP Code:
<?php

$user 
$_POST['username'];
$pass $_POST['password'];

$pass sha1($pass);

...

?>
PHP also supports even more secure encryptions, including all of the sha2 group, through the use of the hash command:

PHP Code:
<?php

$pass 
$_POST['password'];

$pass hash('sha512'$pass); //Applies sha512 encryption

?>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 09-05-2007, 02:45 PM Re: I would like a tutorial on MD5 PHP-MYSQL logins
Extreme Talker

Posts: 182
Trades: 0
Quote:
Originally Posted by dansgalaxy View Post
Isnt $_POST['username'] suposed to be much better than $HTTP_POST_VARS[]
yep, it is.

old (bad) habit.
bhgchris is offline
Reply With Quote
View Public Profile
 
Old 09-05-2007, 05:40 PM Re: I would like a tutorial on MD5 PHP-MYSQL logins
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
i was reading about secure scripts and stuff and read about the whole $_REQUEST where its like the same so user soculd enter them through the URL and hacking in. and was just like what stupid person would use it??
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to I would like a tutorial on MD5 PHP-MYSQL logins
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36572 seconds with 12 queries