473,471 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

md5 crypting in vbulletin

abdoelmasry
104 New Member
Hi men
im trying to develop script for vbulletin

i will ask the user to enter his password im forum

i should validate password from database

i know that vbulletin use md5() to crypt passwords but
i need to know it do that

ex:

i tryed to check the password 123456 but this way:


[PHP]$gtdata=mysql_query("select password from user where username='abdoelmasry'");
$cdata=mysql_fetch_row($gtdata);

if(md5($cdata[0])=="123456"){
echo "Ok Go";
}
else{
echo "Invalid Password";
}[/PHP]
im sure that the password is 123456

why i cann't check it by md5() ??
Jun 2 '07 #1
2 2619
johnhjohn
43 New Member
I am not sure what you are asking, but let me try to help. If vbulletin has the password stored as an md5, then you will want to check the password by creating the md5 of the password you are checking. So I would try:

[PHP]$gtdata=mysql_query("select password from user where username='abdoelmasry'");
$cdata=mysql_fetch_row($gtdata);

if($cdata[0]==md5("123456")){
echo "Ok Go";
}
else{
echo "Invalid Password";
}[/PHP]
Jun 2 '07 #2
abdoelmasry
104 New Member
hi johnhjohn

i got it

vbulletin use this way to code userpasswords

[PHP]$md5_password=md5(md5('123456').$user['salt']);[/PHP]

Abdo Elmasry
Jun 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: nntp | last post by:
PHP is source code based. How could vBulletin sell a key for 1 year or for multiple years. How can vBB check if the same key is used on different servers/machines? I guess there is some kind of...
0
by: albert | last post by:
Anybody knows how to check if a visitor in vBulletin with a PHP script? Thanks in advance!
1
by: Paul Aspinall | last post by:
Hi Does anyone know of an 'out of the box' forum software, similar to that of vBulletin which is unedr PHP? Thanks
2
by: David | last post by:
Hi. I'm in the first stages of developing a web site. I'm at least moderately well versed in it (I have the MCAD certification, anyway), so I'm having no problem with the programming and all...
1
by: Birmingham | last post by:
i just tried to find my own dropdown links to see if there was a link to my homepage (i'm such a spammer sometimes) and i didn't get one. all i got was a link to click to go to my forum profile page....
1
by: RuthC | last post by:
I am using vbulletin 3.7. and I logged in as administrator, I want to see all the thread posted in forum and also remove a specific thread(both subscribed and unsubscribed) pls help me.
0
by: smartic | last post by:
i need to move my vBulletin forum to another server put i have problem to import the database to my new sever it give me an error "You probably tried to upload too large file. Please refer to...
1
by: waqasahmed996 | last post by:
hi to all i have a problem in vbulletin translation. actually i purchased vbulletin forum for my site. but the problem is that when i write new thread in english forum(when english language is...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.