Solved

RC4 Encrypt/Decrypt

Posted on 2007-04-03
3
1,879 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
X-Frame-Options - click-jacking 7 46
SQL Query Join 9 53
ASP VB... 7 93
Import csv files to MS SQL 5 61
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…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now