Solved

RC4 Encrypt/Decrypt

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RegEx Help - open to other simple suggestions 8 66
Select only the top record in a left join 13 50
ASP exit 10 33
JQuery & Classic ASP 10 39
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…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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