Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

RC4 Encrypt/Decrypt

Posted on 2007-04-03
3
Medium Priority
?
1,888 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

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…
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

618 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