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

Home Posts Topics Members FAQ

Using phpMyAdmin question

nomad
664 Recognized Expert Contributor
Hello Everyone.
I have a general question to ask.
When I looking up a table that contains passwords under the browser mode my passwords look like this
500e670de29bfb98b7ef70ca48fdc07b

is there a way so that I can look up what they really are.
ie should be something like this
goodphpcoder09x

thanks
nomad
Oct 10 '08 #1
5 1707
gnawz
64 New Member
Check if you set the Md5 function in the database on the password field.

Alternatively, you could decrypt the password before displaying it.

something like
Expand|Select|Wrap|Line Numbers
  1.  
  2. <?
  3. $sql = "SELECT user FROM users WHERE Password = PASSWORD ($password)";
  4.  
  5. or
  6.  
  7. $sql = "SELECT user FROM users WHERE Password = MD5($password)";
  8. ?>
  9.  
  10.  
Hope it helps
Oct 10 '08 #2
Atli
5,058 Recognized Expert Expert
is there a way so that I can look up what they really are.
ie should be something like this
goodphpcoder09x
No, there isn't, and there shouldn't be.

When a password is saved into a database, it is usually *hashed*.
Hashing is kind of a one-way encryption, meant to make sure that the data can not be decrypted and read.
This is done so that the passwords can not be read by anybody. Not even the system administrator. It makes sure your user's passwords are safe from everybody, even you.

That is what you posted, and it can not be reversed.

Why do you want to read it anyways?
I have never come across a situation where I needed to see the original password of one of my users.
Oct 10 '08 #3
Atli
5,058 Recognized Expert Expert
Alternatively, you could decrypt the password before displaying it.
No, you can't.

Hashes can not be decrypted.
The PASSWORD and MD5 functions create hashes, they do not decrypt them.
Oct 10 '08 #4
pbmods
5,821 Recognized Expert Expert
Heya, nomad.

Under what context do you need to access User passwords? There might be an alternative.

For example, many websites allow the User to reset his password instead of emailing the password to him. This way, you never need to know what the User's password actually was; you simply need to have an alternate way of authenticating the User (generally by sending a "reset" link to the User's email account on file).
Oct 10 '08 #5
nomad
664 Recognized Expert Contributor
Thanks for the input everyone.
I was just wondering, I have a phpBB forum in which I was going to add a forum were everyone (member) will be able to submit images to the db and only certain member were be allowed to download the files from the db.

nomad
Oct 10 '08 #6

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

Similar topics

7
by: SCS | last post by:
Running PHP 4.5.7 PHPMyAdmin 2.5.7-pl1 IIS 6 I am thrying to get phpmyadmin to work, but whenever I click a link or try to browse a database I get a 404 error, because the PmaAbsoluteUri...
0
by: phpnube | last post by:
I used this php package to install on my system... (i had problems with the isapi package from php so im back to the cgi portion of PHP php-cgi.exe) PHP 5.0.0 installer - 26 July 2004 (CGI...
0
by: Golf Nut | last post by:
This is a phpmyadmin question more than anything, but I hope someone may be able to help. When creating a dump of a normalized database with 26 innodb tables, phpmyadmin export seems to only export...
2
by: Charles Alexander | last post by:
This is a really, really elementary (almost dumb) question. I have a php script I picked up elsewhere that I want to use to query my MySQL DB. I have phpMyAdmin. I'd like to somehow run this...
0
by: Howard | last post by:
I have Apache Web Server 2.0.55 installed locally with MySQL 5.0.18-nt, and of course PHP 5.1.2 I also have installed phpMyAdmin. It is accessible through http://localhost/phpMyAdmin. The pathing...
5
by: NewbieSupreme | last post by:
I installed Apache 2.0.58, tested it, got the "working" page. Installed MySQL 5.0.22, and didn't really see how to test that, but there is a mysql process running in the task manager. Ran through...
2
by: Marcus | last post by:
Hello, I am trying to install phpMyAdmin 2.8.2 and have a question about config.inc.php. Is it necessary to include all of the $cfg fields in config.default.php, or is it ok to just have...
2
by: Victor | last post by:
Could anybody kindly point me to a clue in the following enigma : I have phpMyAdmin - 2.8.2.4 and MySQL - 4.1.13-nt. In the phpMyAdmin opened in any browser I am able to enter and store Russian...
1
by: bill | last post by:
I have created a database with phpMyAdmin, without problem. I can save and retrieve from the database without problem (programatically) But, when I want to browse the database with phpMYAdmin,...
6
by: Daz | last post by:
Hi everyone, This may be seen as being off-topic, but I am not sure where I need to look for the appropriate documentation/tutorial. All I would like to know, if where (on a Linux system), I...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
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.