p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Professional (http://p2p.wrox.com/forumdisplay.php?f=63)
-   -   password encryption (http://p2p.wrox.com/showthread.php?t=11984)

kosla78 April 19th, 2004 06:39 AM

password encryption
Hi all,

I have a table in my database that keeps the passwords of my users and I'm looking for a way to encrypt them. There are other users that access the table so i dont wont them to be able to see them. Are there any ready algorithms in VB (VBScript) or should i write one of my own??

Thanks in advance

mega April 19th, 2004 07:53 AM

You can use the standard MD5 algorithm:
or the SHA-256 algorithm:

Regards Jon

happygv April 19th, 2004 01:21 PM

Here is the one I used in mine. Works fine.

RC4 Encryption Using ASP & VBScript

You can also test this out from the site. Link give below.

This has the code to encrypt/decrypt.

Hope that helps.

-Vijay G

acpt January 27th, 2006 12:05 PM

i can encrypt the password by passing the sting to the ms5 function as Md5("Test") but how do i decrypt it ??

Steweb February 3rd, 2006 08:20 PM


... Only encryption !


I don’t Speak English very well, excuse me !


iamjagr68 July 12th, 2006 03:18 PM

Alright, I am trying to use the RC4 encryption method stated in happygv's post. I'm triple encrypting the data with 3 different keys/passwords and this seems to work for some data but not for others.
I'm trying to use it to encrypt data that is going into a database and for some reason some of the encrypted values break my insert queries. I thought maybe it was the triple encryption so I switched to a single encryption and it fixed that particular value but the same problem is affecting other values.
So my question is how can I fix this and what is causing it? Illegal characters being created with the encryption? Is the password/key that you specify when performing the encryption limited to certain characters (i.e. is the key I'm using causing the problem)?


iamjagr68 July 12th, 2006 03:50 PM

An Added note to my previous post...
These query breaking encrypted values even seem to break my html some how.

All times are GMT -4. The time now is 09:58 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.