Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 19th, 2004, 06:39 AM
Authorized User
 
Join Date: Jul 2003
Location: Athens, , Greece.
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

  #2 (permalink)  
Old April 19th, 2004, 07:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Copenhagen N, , Denmark.
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default

You can use the standard MD5 algorithm:
http://www.freevbcode.com/ShowCode.Asp?ID=2366
or the SHA-256 algorithm:
http://www.frez.co.uk/freecode.htm#sha256

Regards Jon
  #3 (permalink)  
Old April 19th, 2004, 01:21 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

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

RC4 Encryption Using ASP & VBScript
http://www.4guysfromrolla.com/webtech/010100-1.shtml

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

This has the code to encrypt/decrypt.
http://www.4guysfromrolla.com/webtec...4test.asp.html

Hope that helps.
Cheers!

-Vijay G
  #4 (permalink)  
Old January 27th, 2006, 12:05 PM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


  #5 (permalink)  
Old February 3rd, 2006, 08:20 PM
Authorized User
 
Join Date: Feb 2006
Location: Verona, Italy, Italy.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

... Only encryption !

Steweb




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

www.steweb.net
  #6 (permalink)  
Old July 12th, 2006, 03:18 PM
Registered User
 
Join Date: Jul 2006
Location: Orlando, FL, .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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)?

Thanks,
Wesley

  #7 (permalink)  
Old July 12th, 2006, 03:50 PM
Registered User
 
Join Date: Jul 2006
Location: Orlando, FL, .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Password encryption and storage in the database. zaheerabbas.sk ASP.NET 1.0 and 1.1 Basics 4 July 30th, 2008 05:03 AM
Storing password using encryption from JAVA inderjeet_79 Java Databases 3 October 11th, 2007 04:11 AM
Password encryption decryption, storage in databas zaheerabbas.sk ASP.NET 1.0 and 1.1 Professional 1 April 25th, 2007 02:15 AM
password encryption angshujit ASP.NET 2.0 Basics 1 January 4th, 2007 03:34 PM
Encryption timeware SQL Server 2005 1 September 7th, 2006 12:35 PM





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