473,387 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

how to decrypt the user password

How do I decrypt the password of a user? What is the command used for decrypting the encrypted password to normal one?

After entering into postgreSQL database and typing:
postgres=# select * from pg_shadow;

We will be getting the below listed fields..
i am a super user of the database..

password field shows :md5f0101924b02603efac6788bb7f096638 as encrypted password in Message Digest 5 algorithm...
Expand|Select|Wrap|Line Numbers
  1. usename|usesysid|usecreatedb|usesuper|usecatupd |passwd|valuntil|useconfig
  2. ---------+----------+-------------+----------+-----------+-------------------------------------+--------------
  3.  hyd     |    10 | t        | t       | t      | md5f0101924b02603efac6788bb7f096638 |
May 28 '10 #1
3 39106
debasisdas
8,127 Expert 4TB
You can't do that.

Else what is the security in the database ?
May 28 '10 #2
RedSon
5,000 Expert 4TB
You don't decrypt the password to check it. You can't decrypt it. It is impossible mathematically speaking.

What you do is take the password input from the user and hash it and then compare the hash against the password in your database. If the hash matches then you know they input the right password.
May 28 '10 #3
You saved me alot of Research, thanks alot.
Apr 26 '18 #4

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

Similar topics

6
by: Lou | last post by:
Please can someone put me out my misery! Im trying to find a multiple user/password protection script that will redirect the specific user to a specific directory. At the moment I have set up...
3
by: yabba | last post by:
Is there a way to supply a nt/windows user/password combo in a url for an automatic login to a nt user/password secured site? Something like http://mysite.comuser=mepassword=mypassword =...
4
by: Robert Kattke | last post by:
Subject: Can you retrieve/restore a MySQL user Password ? I'm working on my own, local WXP, MySQL, version: 3.23.38-nt and I have the "root" password, and normally use the root account. I have...
0
by: Yannick Béot | last post by:
Hi, I'm trying to make an application that allow a user, through a web form to change its password On a click event, here is the code DirectoryEntry usr = new DirectoryEntry( theUserDN,...
9
by: webrod | last post by:
Hi all, how can I check a user/password in a LDAP ? I don't want to connect with this user, I would like to connect to LDAP with a ADMIN_LOG/ADMIN_PWD, then do a query to find the user and...
11
by: savyatha | last post by:
im using md5 to encrypt the password. then, how to get back the original string if i need it. is there any decryption possible? plz help me in this regard. thanks in advance
4
by: nithyasunil | last post by:
How do I decrypt a password from the database?
0
by: geoharish | last post by:
Dear All, I started using Python just a few days back and there was a requirement of an assigned project to change the user Password through script without user interaction. I could write the...
6
by: cnivas | last post by:
Hai All, Good Evening, I'm doing a small application using python and MySQL in APPLE MACINTOSH OPERATING SYSTEM. I want to to store the password in encrypted form in the database. While...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.