A Reversible XOR Encryption Using a Rotating Key

Category:
String Manipulation
Type:
Snippets
Difficulty:
Intermediate
Author:
Stefan

Version Compatibility: Visual Basic 6

More information:
This is a fully commented reversible XOR encryption demonstration. It uses a rotating key to achieve a reasonable level of protection. It also provides a good introduction to encryption concepts.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code:

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download sampleencryption.zip