473,416 Members | 1,558 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,416 software developers and data experts.

How to check the Password in C# and SQL?

Hi,

The Password column in SQL server 2000 is a datatype of "image", then how do
I check the password in the C# responding to the "image" datatype?
Thanks for help.

Jason
Nov 17 '05 #1
3 1977
Jason Huang wrote:
Hi,

The Password column in SQL server 2000 is a datatype of "image", then
how do I check the password in the C# responding to the "image"
datatype? Thanks for help.

Jason


What happens if you do a "convert(varchar, ..)" on that password column?
(How do you get the values INTO that column in the first place?)

Hans Kesting
Nov 17 '05 #2
Why not just encrypt the password then convert to base64 and save in a
string type column. Or varbinary if you have SQL2005.

--
William Stacey [MVP]

"Jason Huang" <Ja************@hotmail.com> wrote in message
news:O1****************@TK2MSFTNGP14.phx.gbl...
Hi,

The Password column in SQL server 2000 is a datatype of "image", then how
do I check the password in the C# responding to the "image" datatype?
Thanks for help.

Jason

Nov 17 '05 #3
I would find it hard to believe the password column in your SQL server 2000
can be decrypted into something that the .Net framework would understand,
but I haven't tried it.

I've used md5 on the password. This makes the trip one way, as you can not
determine the original password from the md5 checksum. This is slightly
more secure than encrypting the password, then decrypting the password for
comparison (it's more like encrypting both the original, and the comparison
passwords to see if they generate the same checksum). I md5 the password
when I save it originally, then md5 any password from a logon attempt. If
they derive the same number, then statistically speaking the md5 checksum
was derived from the same password for both. Of course, I would enforce a
password length of some sort.

Scott
NetConquer

"Jason Huang" <Ja************@hotmail.com> wrote in message
news:O1****************@TK2MSFTNGP14.phx.gbl...
Hi,

The Password column in SQL server 2000 is a datatype of "image", then how
do I check the password in the C# responding to the "image" datatype?
Thanks for help.

Jason

Nov 17 '05 #4

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

Similar topics

4
by: ad | last post by:
I am using MSDE as the database of my program. At the begin of my program, it must display a form for user to enter the password After the user enters the password, I will check the password,...
2
by: Nikolay Petrov | last post by:
I have an app with text boxes used to change user password Textbox1 - old password Textbox2 - new password Textbox3 - new password second time What I need is how to check if the newely created...
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
4
by: veerusrahul | last post by:
Hi, I am working on a Windows Application where i need to check a file exists in particular library with user crediantials. Please suggest how to do it. Note : .Net framework 1.1 (VS2003)
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
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
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
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...

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.