Malaysia-based ICT author Yeoh has compiled an ebook of source code packages bundled with a fully functional program that encrypts and decrypts text or binary files, LTFCrypt Version 1.1. This is an easy way for you to learn how to use Visual C++ with LibTomCrypt, a public domain and ISO C cryptography library, to build your own file encryption program.
Supported ciphers include: aes, blowfish, xtea, rc5, rc6, safer+, twofish, safer-k64, safer-sk64, safer-k128, safer-sk128, rc2, des, 3des, cast5, noekeon, skipjack, khazad and anubis.
In the example source codes, the symmetric block cipher chaining mode used is CTR (Counter Mode). However, LibTomCrypt also supports other modes, such as CFB, OFB, ECB, CBC.
If you use LibTomCrypt, your program does not need any external encryption DLLs or software components. Without DLL linking, you won't need to distribute any supporting DLLs.
There is only static linking using tomcrypt.lib. In addition, there are no messy COM installation problems.
LTFCrypt, a free and fully functional program, can be
downloaded.
From this real-world example source code package, you can learn how to use C libraries in MFC applications, and how to use selected LibTomCrypt library functions with the correct parameters and sequence for encrypting and decrypting a file.
The package contains two Visual C++ projects:
- Visual C++ 6.0 project with source codes and compiled LibTomCrypt static library, tomcrypt.lib
- Visual C++ 7.1 project with source codes and compiled LibTomCrypt static library, tomcrypt.lib
Read More Source : YeohHS