472,962 Members | 2,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,962 software developers and data experts.

What kind of password begin with *9D87... in the database?

matheussousuke
249 100+
I have a password like this

Expand|Select|Wrap|Line Numbers
  1. *9W0C5CB2A08313B8A04E63A80F1E6F01F3LK3876

on my database, I'm currenlty working on a script that changes the admin password and send it for the admin e-mail, but it changes to MD5, I tried to put sha-1, but even so, sha-1 also does not works. The password should begin with a asterisk "*", and it does not when I use SHA-1 or MD5.


The part of the code that does that is this one:


Expand|Select|Wrap|Line Numbers
  1.      //Generate a RANDOM MD5 Hash for a password
  2.      $random_password=md5(uniqid(rand()));
  3.  
  4.      //Take the first 8 digits and use them as the password we intend to email the user
  5.      $emailpassword=substr($random_password, 0, 8);
  6.  
  7.      //Encrypt $emailpassword in MD5 format for the database
  8.      $newpassword = md5($emailpassword);
  9.   // Make a safe query update administrator set sPassword = '$newpassword
  10.             $query = sprintf("UPDATE administrator SET sPassword='$newpassword'",
  11.                      mysql_real_escape_string($newpassword));
  12.  
  13.                      mysql_query($query)or die('Could not update members: ' . mysql_error());
  14.  


Thank you
Oct 7 '10 #1
8 1523
dlite922
1,584 Expert 1GB
That's a mysql generated password. see MySQL function PASSWORD().

Dan
Oct 7 '10 #2
matheussousuke
249 100+
thx a lot, buddy. :-)

Really helped, I've been after this all daylong.


How can I apply it on the code above?
Oct 7 '10 #3
dlite922
1,584 Expert 1GB
use SHA-1. I believe Mysql.password() and md5() are already cracked.

Dan
Oct 7 '10 #4
matheussousuke
249 100+
oh, I forgot to tell, that's the first time I'm messing with php forgot password script, I tried once, but could not make anything work.

I'm a php newby.

Yes, MD5 and that other are already cracked, but unfortunately there are more than 6 scripts on the sistem that use PASSWORD(), tried changing to MD5, SHA-1, could not help.



Is that the way to use PASSWORD() ???


Expand|Select|Wrap|Line Numbers
  1.  
  2.  $query = sprintf("UPDATE administrator  PASSWORD=sPassword('$newpassword')",
  3.                      mysql_real_escape_string($newpassword));
  4.  
  5.  
  6.  
Oct 7 '10 #5
matheussousuke
249 100+
I was reading here that PASSWORD() is not a function, so how does that work?
Oct 7 '10 #6
matheussousuke
249 100+
u still there?
Oct 7 '10 #7
Dormilich
8,658 Expert Mod 8TB
The password should begin with a asterisk "*", and it does not when I use SHA-1 or MD5.
neither hash algorithm outputs a *, only numbers (most of the time hexadecimal)

I was reading here that PASSWORD() is not a function, so how does that work?
MySQL PASSWORD() function
Oct 8 '10 #8
matheussousuke
249 100+
Now I'm having an issue with the email verification.

I have another post with the same subject, forget about this one, go to: http://bytes.com/topic/php/answers/8...pt#post3611007


thx
Oct 8 '10 #9

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

Similar topics

4
by: lawrence | last post by:
I just moved this site a new server: http://www.staenglengineering.com On the new server, it does not work. Most pages have a top banner and bottom footer that is included. The include works...
4
by: nib | last post by:
What kind of problems is visual basic best at solving?
1
by: webmaster | last post by:
I have a password protected Access Database (.MDB) file. I also have a Crystal Report with database fields connected to table in this database. I want to display the Crystal Report Preview Form...
1
by: Daniel | last post by:
Hello everyone, I am trying to connect to a password protected Access database using: Public connString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & pathDB & ";User...
3
by: Benny Ng | last post by:
Dear all, The following is the source. The password is encrypted and saved into the Binary in SQL2K. Now I want to create a new page to compare the existed password and the password that in the...
0
by: darod | last post by:
hi, I'm looking for a native db engine for purposes of my application, presumptions: 1. It should allow to store/retrieve BLOB datas 2. It should deliver JAVA API to query database 3. It...
2
by: white lightning | last post by:
Hi all, I'm not sure if I am posting this in the right forum. Anyway, I'll try. The company where I work is going to have a new online sales / marketing system developed in asp.net (not quite...
1
by: laziers | last post by:
Hi, What kind of data access you will use for the project with very large database : 1. NHibernate 2. Linq 3. Sql queries + stored procedures 4. DataSets
3
by: vamsioracle | last post by:
Hi could someone explain me what kind of a code is this. CREATE OR REPLACE PACKAGE BODY APPS.FFP3613_01011951 AS /* Code generated by Oracle FastFormula - do not edit. Formula Name:...
4
by: Parag Pathari | last post by:
sir i want php code for verifying password stored in database. that is when user enters username and password it should verify values stored in database. please provides php code along with html...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.