Click here to Skip to main content
15,891,657 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: OnTimedEvent Pin
ciacia23-May-07 7:53
ciacia23-May-07 7:53 
GeneralRe: OnTimedEvent Pin
Dave Kreskowiak23-May-07 8:17
mveDave Kreskowiak23-May-07 8:17 
GeneralRe: OnTimedEvent Pin
ciacia23-May-07 8:48
ciacia23-May-07 8:48 
GeneralRe: OnTimedEvent Pin
Dave Kreskowiak23-May-07 9:44
mveDave Kreskowiak23-May-07 9:44 
QuestionEncrypting passwords in a database Pin
steve_rm23-May-07 5:42
steve_rm23-May-07 5:42 
AnswerRe: Encrypting passwords in a database Pin
Tarakeshwar Reddy23-May-07 6:03
professionalTarakeshwar Reddy23-May-07 6:03 
AnswerRe: Encrypting passwords in a database Pin
andyharman23-May-07 6:14
professionalandyharman23-May-07 6:14 
AnswerRe: Encrypting passwords in a database Pin
Dave Kreskowiak23-May-07 6:27
mveDave Kreskowiak23-May-07 6:27 
MD5 is proven weak.

A better method would be to salt the password, encrypt it with your favorite (stronger) algorithm to get a hash of the salted password, then store the hash and the salt in the database.

When you go to check the users password, retrieve the password hash AND the salt, salt the entered password, run it through the same encryption algorithm you used to encrypt the original password to get it's hash, then compare to the two hashes.

There's examples of this all over the web. Just Google for "VB.NET password salt encrypt database". I highly recommend reading this[^] article on CP too.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


AnswerRe: Encrypting passwords in a database Pin
kubben23-May-07 7:00
kubben23-May-07 7:00 
QuestionCounting Records added and modified in a DataSet Pin
Quecumber25623-May-07 5:20
Quecumber25623-May-07 5:20 
AnswerRe: Counting Records added and modified in a DataSet Pin
Dave Kreskowiak23-May-07 6:19
mveDave Kreskowiak23-May-07 6:19 
GeneralRe: Counting Records added and modified in a DataSet Pin
Quecumber25623-May-07 6:51
Quecumber25623-May-07 6:51 
GeneralRe: Counting Records added and modified in a DataSet Pin
Dave Kreskowiak23-May-07 6:55
mveDave Kreskowiak23-May-07 6:55 
Questionpull data from access database table to vb.net Pin
jds120723-May-07 3:56
jds120723-May-07 3:56 
AnswerRe: pull data from access database table to vb.net Pin
Dave Kreskowiak23-May-07 6:43
mveDave Kreskowiak23-May-07 6:43 
QuestionUsing the character '&' in Label.Text Pin
RichFeldman23-May-07 3:44
RichFeldman23-May-07 3:44 
AnswerRe: Using the character '&' in Label.Text Pin
Kschuler23-May-07 4:10
Kschuler23-May-07 4:10 
Questionhow do u communicate btn a webserver and a remote computer via the internet? Pin
dleo1023-May-07 3:22
dleo1023-May-07 3:22 
AnswerRe: how do u communicate btn a webserver and a remote computer via the internet? Pin
Dave Herren23-May-07 3:36
Dave Herren23-May-07 3:36 
QuestionMS Outlook macro help... Pin
Fred_Smith23-May-07 2:18
Fred_Smith23-May-07 2:18 
AnswerRe: MS Outlook macro help... Pin
Dave Kreskowiak23-May-07 6:01
mveDave Kreskowiak23-May-07 6:01 
GeneralRe: MS Outlook macro help... Pin
Fred_Smith23-May-07 6:19
Fred_Smith23-May-07 6:19 
GeneralRe: MS Outlook macro help... Pin
Dave Kreskowiak23-May-07 6:33
mveDave Kreskowiak23-May-07 6:33 
GeneralRe: MS Outlook macro help... Pin
Fred_Smith23-May-07 6:43
Fred_Smith23-May-07 6:43 
Questionfour events and one handler Pin
Sonia Gupta23-May-07 1:28
Sonia Gupta23-May-07 1:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.