DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Visual Basic 4 / 5 / 6 (http://www.daniweb.com/forums/forum4.html)
-   -   Encripted psw check (http://www.daniweb.com/forums/thread134348.html)

veledrom Jul 14th, 2008 10:32 am
Encripted psw check
 
Hi,

I have encripted password column in my table. I use VB6 code below to check password but it doesn't work. I think i have to call a function to decrypt it. Where and which function do i use in my sql code below with text1.text.

Thanks

.......WHERE psw=' " & text1.text & " '

nav33n Jul 14th, 2008 10:41 am
Re: Encripted psw check
 
Umm.. Is it related to php ? :-/

veledrom Jul 14th, 2008 3:07 pm
Re: Encripted psw check
 
Sorry, this is wrong place for this post.
I do apologise

peter_budo Jul 15th, 2008 6:25 am
Re: Encripted psw check
 
Moved to VB section

Jx_Man Jul 15th, 2008 8:47 am
Re: Encripted psw check
 
Call Decript function before check.
......WHERE Decript(psw)=' " & text1.text & " '

Or
You can encript inputed pasw before check
......WHERE psw=' " & Encript(text1.text) & " '

veledrom Jul 15th, 2008 5:48 pm
Re: Encripted psw check
 
Thank you Jx,

I have done it with your solution and solved. In Insert clause encrypt text1 with "AES_ENCRYPT". After i used code below to check text1.

....WHERE AES_DECRYPT(psw, 'text_key') = '" & Text1.Text & "';

Jx_Man Jul 15th, 2008 6:04 pm
Re: Encripted psw check
 
You're Welcome...
Happy coding :)


All times are GMT -4. The time now is 11:52 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC