Solved

RC4 Encrypt/Decrypt

Posted on 2007-04-03
3
1,881 Views
Last Modified: 2008-01-09
I would like to create two routines, one that would create an encrypted text file and then a second routine to decrypt that file and read its content into variables.

For example, my two variables would appear in a plain text file as:
ID=12
Date=01/01/2008

But I want to encrypt the text file contents before saving the file.  Later in the script I will need to read that file and decrypt it's contents to read those variables.

I would prefer to perform the encryption and decryption in classic ASP.

Thanks in advance for your help.
0
Comment
Question by:ddrudik
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
kevp75 earned 500 total points
ID: 18847499
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6646&lngWId=4

basically when you do your .WriteLine, (using the code from the above link) you would do something like:

With objTextFile
    .WriteLine(Encrypt(variableName,encryptKey))
End With
0
 
LVL 27

Author Comment

by:ddrudik
ID: 18848035
Perfect.  Thanks.
0
 
LVL 25

Expert Comment

by:kevp75
ID: 18848101
any time
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question