Binary SQL Data Type

G

Guest

I have a password field in a SQL Server db that stores passwords as an MD5
encrypted binary(16) value.

I'd like to get the value of this field out of the table to compare to user
inputted text.

I'd like to get the value out of the table in the byte[] form, with
something like this:

byte[] b = reader.????

Then do something like:

if (b == MyEncryptMethod(tbPass.text)
{

}

Thanks!
Any suggestions?
 
S

Shiva

byte[] b = (byte[])reader("<password_col_name>");

I have a password field in a SQL Server db that stores passwords as an MD5
encrypted binary(16) value.

I'd like to get the value of this field out of the table to compare to user
inputted text.

I'd like to get the value out of the table in the byte[] form, with
something like this:

byte[] b = reader.????

Then do something like:

if (b == MyEncryptMethod(tbPass.text)
{

}

Thanks!
Any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top