Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

ARACrypt - a crypto class

0.00/5 (No votes)
24 May 2002 1  
Extremely simple crypto class

Introduction

This is an extremely simple class for encrypting/decrypting text. This cannot get any simpler. All you have to do is create an instance of the ARACrypt class and call TransformString passing it first the encryption/decryption key, then the CString holding your text you want to en/decrypt.

You should have any problems running this. It isn't my code though. It was written by Kurtz. I just could pass on sharing it with you.

ARACrypt Crypt;
CSTring Key = "MyKey";
CString sSecretString = "My info";

Crypt.TransformString( Key, sSecretString);

To get the string decrypted just make the call to TransformString again. It is that simple

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here