Click here to Skip to main content
15,886,873 members
Articles / Desktop Programming / MFC

TEA Encryption/Decryption Made Simple

Rate me:
Please Sign up or sign in to vote.
4.60/5 (10 votes)
20 Dec 2008CPOL5 min read 106.3K   5.4K   50  
Easy to use crypto class that uses TEA, XTEA and XXTEA standards
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// -																																					-
// - File:			cencryptdecrypt.cpp.																												-
// -																																					-
// - Contents: 		Implementation of class CEncryptDecrypt and a few helper functions.																	-
// -																																					-
// - Purpose:  		TEA, XTEA and XXTEA crypto methods.																									-
// -																																					-
// - Remarks:    	No restrictions and free to use open source.																						-
// -																																					-
// - Originator: 	Michael Mogensen, MM-IT Consult 2003, michael-mogensen-danmark@hotmail.com.															-
// -																																					-
// - Compiler:		MS Visual C++ 9.0.																													-
// -																																					-
// - Period:		07.12.08 - 00.00.00.																											    -
// -																																					-
// - Version:		1.00. 07.12.08. Initial version.																									-
// -				1.10. 18.12.08. Replaced MFC Array<T, T> with SLT vector<> to loosen MFC dependence.												-
// -								Added new Encrypt(...)/Decrypt(...) methods working with char*.														-
// -																																					-
// ------------------------------------------------------------------------------------------------------------------------------------------------------

#include "stdafx.h"

#include "CEncryptDecrypt.h"

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Denmark Denmark
c/c++/c# -developer.

Comments and Discussions