Raised This Month: $ Target: $400
 0% 

Hash Password verify in php


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FonixPro20
Member
Join Date: Mar 2018
Location: Usa
Old 09-30-2023 , 20:36   Hash Password verify in php
Reply With Quote #1

Why do hash password in Register System by m0skVi4a ;] did not work for login process in PHP?

How do I Encryption is the process of converting password for PHP?

PHP Code:
#define SALT "8c4f4370c53e0c1e1ae9acd577dddbed"
new check_pass[34];
 new 
password[33][34];

public 
HashPass(id)
{
 
password[id] = convert_password(check_pass)
}

stock convert_password(const password[])
{
    new 
pass_salt[64], converted_password[34];
    
formatex(pass_saltcharsmax(pass_salt), "%s%s"passwordSALT)
    
md5(pass_saltconverted_password)
    return 
converted_password

for php will be like?

PHP Code:

if ($result->num_rows == 1) {
    
$row $result->fetch_assoc();
  if ( 
md5($password) == $db_password) {
     
header("Location: dashboard.php");
     exit;

FonixPro20 is offline
Send a message via ICQ to FonixPro20 Send a message via AIM to FonixPro20 Send a message via Yahoo to FonixPro20 Send a message via Skype™ to FonixPro20
 



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

Forum Jump


All times are GMT -4. The time now is 10:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode