473,406 Members | 2,217 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,406 software developers and data experts.

how password is stored and check the authentication??

I want to ask how password is stored and how to check the
authentication?

I have heard password is never encrypted and decrypted, but it is
hashed.

For example, consider a simple email logon authentication in a hash
table:
Key: my email address
Value: hash_function(my plan text password)

The hash_function will hash my password to some number.

When I logon, it will have another function to do the reverse.

If (reverse_hash_function(the password I enter on the logon screen)
== get_value(my email address))
Then Correct Password
Else Wrong Password

I don't know if this is correct. Please comment, and advise.

thanks!!

Sep 16 '05 #1
7 2893

jr********@hotmail.com wrote:
If (reverse_hash_function(the password I enter on the logon screen)
== get_value(my email address))


ain't no such thing as reverse_hash_function.

you do straight_hash_function on password user typed and match result
against hash of original password.

Sep 16 '05 #2
jr********@hotmail.com wrote:
I want to ask how password is stored and how to check the
authentication?

I have heard password is never encrypted and decrypted, but it is
hashed.

For example, consider a simple email logon authentication in a hash
table:
Key: my email address
Value: hash_function(my plan text password)

The hash_function will hash my password to some number.

When I logon, it will have another function to do the reverse.

If (reverse_hash_function(the password I enter on the logon screen)
== get_value(my email address))
Then Correct Password
Else Wrong Password

I don't know if this is correct. Please comment, and advise.

thanks!!


This post is off-topic in this newsgroup, which deals with C++ language
issues, not specific applications or platform dependencies. Try a forum
about security or encryption.

Cheers! --M

Sep 16 '05 #3
>I want to ask how password is stored and how to check the
authentication?
Which password? One of mine is stored in an Oracle database in plaintext.
I have heard password is never encrypted and decrypted, but it is
hashed.
Some passwords are stored as a one-way hash of the plaintext password.
Some are stored as clear text. How it is stored may have an effect
on the authentication method you use. For example, storing the
password as a hash may make it impossible to use some challenge-response
protocols which need the plaintext password STORED, but never
TRANSMITTED, while the UNIX-style crypt STORES a hashed password
but requires TRANSMISSION of the plaintext password.

Which is more secure depends on the nature of the setup and the
security threat.
For example, consider a simple email logon authentication in a hash
table:
Key: my email address
Value: hash_function(my plan text password)

The hash_function will hash my password to some number.

When I logon, it will have another function to do the reverse.


Hash functions are generally NOT reversible - and that's the point
of using them. You send the plain text password and the server
computes the hash and compares it against what's in the database.
If it matches, you're in.

Gordon L. Burditt
Sep 16 '05 #4
jr********@hotmail.com writes:
I want to ask how password is stored and how to check the
authentication? I have heard password is never encrypted and decrypted, but it is
hashed. For example, consider a simple email logon authentication in a hash
table:
Key: my email address
What key? hashes do not use keys.
Value: hash_function(my plan text password)
Value is then stored.

Correct, (of course you do not say what operating system, what program etc,
but this is at least the way it should be done)

The hash_function will hash my password to some number. When I logon, it will have another function to do the reverse.
No. A hash has no inverse. When you logon the system hashes your entry
password and compares the two hashes.

If (reverse_hash_function(the password I enter on the logon screen)
== get_value(my email address))
No
if (stored_hash = hash_function(entered_password)) then ....
I don't know if this is correct. Please comment, and advise.


Sep 16 '05 #5
"mlimber" <ml*****@gmail.com> writes:
jr********@hotmail.com wrote:
I want to ask how password is stored and how to check the
authentication?

I have heard password is never encrypted and decrypted, but it is
hashed.

For example, consider a simple email logon authentication in a hash
table:
Key: my email address
Value: hash_function(my plan text password)

The hash_function will hash my password to some number.

When I logon, it will have another function to do the reverse.

If (reverse_hash_function(the password I enter on the logon screen)
== get_value(my email address))
Then Correct Password
Else Wrong Password

I don't know if this is correct. Please comment, and advise.

thanks!!
This post is off-topic in this newsgroup, which deals with C++ language
issues, not specific applications or platform dependencies. Try a forum
about security or encryption.


He did. sci.crypt. Cross posting.

Sep 16 '05 #6
FX
Well, it goes like this. U sign up for email, ur password is taken,
operated b one way hash! the hash used may be MD5 (good one). The
hashed result is stored into database.
Whenever u access ur mail with that passoword, it is operated by the
same hash (md5) to get the same result. If ur password is different,
the resulted hash would not match, hence access would b denied.
Hence password is quiet secured and cannot be retrieved, it can however
be reset by some special defined means...

Sep 16 '05 #7
"FX" <ta*****@gmail.com> writes:
Well, it goes like this. U sign up for email, ur password is taken,
operated b one way hash! the hash used may be MD5 (good one). The
hashed result is stored into database.
Whenever u access ur mail with that passoword, it is operated by the
same hash (md5) to get the same result. If ur password is different,
the resulted hash would not match, hence access would b denied.
Hence password is quiet secured and cannot be retrieved, it can however
be reset by some special defined means...


majority of ISPs have an intermediary process involving radius
.... that provides authentication, authorization, and accounting
management and administration.

small confession ... for a small startup isp in previous lifetime, i
was actually involved in configuring radius for real livingston box

since then it has become an ietf standard

from
http://www.garlic.com/~lynn/rfcietff.htm

in the "RFCs listed by" section, click on "Term (term->RFC#)"

and scroll down to

remote authentication dial in user service (RADIUS )
see also authentication , network access server , network services
4014 3580 3579 3576 3575 3162 2882 2869 2868 2867 2866 2865 2809
2621 2620 2619 2618 2548 2139 2138 2059 2058

clicking on the rfc number brings up the rfc summary in the
lower frame (if you are using frames).

clicking on the ".txt=nnn" field in a rfc summeary, retrieves the
actual RFC.

it tends to support a number of various authentication methods, for
instance if you configure PPP on your personal machine for use with
ISP ... you may be presened 3-4 different options ... which includes
clear-text transfer of a password ... but also stuff like CHAP
(challenge response).

there have even been some number of radius versions done where a
public key is registered in lieu of a password and the client performs
a digital signature operation ... with the server performing digital
signature validation using the on-file public key.

besides ISPs using radius for login, email authentication, newsgroup
authentication, etc. ... there are also major applications (like some
of the database systems and web servers) providing radius interfaces
for performing authentication operations.

--
Anne & Lynn Wheeler | http://www.garlic.com/~lynn/
Sep 16 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

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...
4
by: Tim Daneliuk | last post by:
OK, I've Googled for this and cannot seem to quite find what I need. So, I turn to the Gentle Geniuses here for help. Here is what I need to do from within a script: Given a username and a...
5
by: MeAndI | last post by:
Hi, it is possible to get the name and the password of a system user? E.g. I have a login page and I have one user on my server \\myserver\user1 which has the password "pass1" The web user...
10
by: jrefactors | last post by:
I want to ask how password is stored and how to check the authentication? I have heard password is never encrypted and decrypted, but it is hashed. For example, consider a simple email logon...
3
by: Henry | last post by:
Hi, my asp.net application is accessing a mssql on another server. This works fine when I use this in my web.config file: <add key="dbkey"...
2
by: Dmitri Priimak | last post by:
Hi All. There is one thing which somewhat annoys me, which is that psql always prompts me for a password. That makes it difficult for use in Makefile where I want to say 'make build_db', which...
5
by: Afshar | last post by:
Hi everybody there, I have a special Login page that wants users to enter 3 passwords rather than a single password. But can't do it with Login control. I tried following scenarios: 1. Put an...
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...
4
by: Phil Hellmuth | last post by:
Pardon my ignorance...I'm new to .NET...but I want a user to be forced to submit login credentials before displaying a page. Is there a quick, easy way to do this? Don't worry about verifying the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.