Jump to content

How to find encoded password.


Reignfire

Recommended Posts

Hi,

 

I need to find a password of a user in my database but it's encrypted.

 

When you create a new user in the form it's like this in the script:

 

$query  = "INSERT INTO userID (ID,user_id,first_name,last_name,email,pwd) 
VALUES(NULL,\"$user_id\",\"$first\",\"$last\",\"$email\",ENCODE(\"$pw\",\"MD5\"))";

 

ENCODE(\"$pw\",\"MD5\")

 

When i look in my database it says: «C³(8›˜´

 

How can i get the right password. It's my own database and my own password that i forget.

Link to comment
Share on other sites

seems like the encode() function is a user-defined function in which you use the md5 hash algorithm... Per definition by a hash you can't recover the input anymore. (unless you'll try to hack it with rainbow tables for example). If it is encrypted on the contrary, you should use a privat key to find the encrypted password.

 

So try to look an the encode() function...

 

In this case however, i think you lost it...

Edited by stijn0713
Link to comment
Share on other sites

https://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html#function_encode

 

That said, saving a password like that should never be done and is just as bad as saving it as clear-text!

I strongly recommend that you read this article about secure login systems, and implement a proper password hashing systems. So that you can protect your users, for when (yes, when) your user DB gets attacked; Always prepare for the worst case scenario, then it will only be an annoyance instead of a full out crisis, when it does happen.

Edited by Christian F.
Link to comment
Share on other sites

Excuse me if this is ridiculously simple but if I understand you right this is your database, your password, your username. Even if you've forgotten both username and password surely you can search for your first name, last name or email then write an UPDATE script encoding the password, as per Christians post, updating the row of your email/first name & last name/id; then log in with your new password...

Edited by cpd
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.