HighTechTalks DotNet Forums  

RE: Password encrypt/decrypt

ASP.net Announcements microsoft.public.dotnet.framework.aspnet.announcements


Discuss RE: Password encrypt/decrypt in the ASP.net Announcements forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Zoddi Denis
 
Posts: n/a

Default RE: Password encrypt/decrypt - 10-06-2005 , 01:35 PM






I've tryed the code provided in that site
I use it to save encrypted passwords into my db

But I've a problem when I try to select records

i.e. My webuser try to login and input username/password
In ASP I create a select like this

SQL = "Select * from users where password='" & Encrypt(usr_pwd) & "'"

If the encrypted text has particular char (I think reverse ') the
contatenation produces a bad SQL variable, If i try to response.write
SQL it is empty

Is it better to save an hexadecimal encrypted string in DB to avoid
these characters? Is there any algorithm that does it? I need decrypt
function also.


Thanks

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.