Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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
 
Old September 8th, 2009, 11:48 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default Pure ASP string encrypt / decrypt resource

hello all

Anybody know of a pure ASP string encryption resource? Would like to store encrypted values in a table and have the ability to decrypt them also

TYIA
__________________
Wind is your friend
Matt
 
Old September 9th, 2009, 05:48 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Not offhand, but try http://www.aspin.com
 
Old September 9th, 2009, 06:44 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Thank you or reply. For others I ended up going with:

http://www.codango.com/asp/fnc/review-hot/?id=2303410

It works well with no issues. one thing that tripped me up was comparing the users password when loggin in against the record in the database. I would normally:

if trim(request.form("tPassword")) = DeCryptString(User(2))) then...

however I had to:

if StrComp(request.form("tPassword"), DeCryptString(User(2)), 0) then...

Maybe because of some line feed or similar characters at the end of the decrypted string
__________________
Wind is your friend
Matt
 
Old September 10th, 2009, 02:46 AM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Oh, please don't use that! That's about the weakest encryption scheme I've ever seen!

It's also some of the WORST VBScript coding I've seen in a LONG time!

You can do better than that in your SLEEP!

Hell, the idiotic thing doesn't even use a "key" as part of the encryption. Sure it generates a random key, but then it EMBEDS the key into the encryption!!! Everybody who uses the code shares the SAME ENCRYPTION. Which means anybody who *has* the code can decrypt it!

*PLEASE* try to find something better!

This is the most promising one I saw:
http://www.planet-source-code.com/vb...txtCodeId=6646
Be sure to use a relatively long Key string. I always recommend no less than 12 to 15 characters and longer won't hurt.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to encrypt/decrypt the password imlalit Java Databases 1 October 5th, 2009 01:41 AM
encrypt and decrypt query string hanusoftware ASP.NET 2.0 Professional 1 July 16th, 2007 04:53 AM
encrypt and decrypt fuadlutfi85 Pro JSP 0 July 5th, 2007 09:00 PM





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