?
Solved

RC4 Encrypt/Decrypt

Posted on 2007-04-03
3
Medium Priority
?
1,887 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
kevp75 earned 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

762 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