Languages C / C++ Security  

C++ OTP Encryption

download download home home  
important code information
author:
CGs
minimum requirements:
C++ OTP Encryption description

This is yet another OTP (One Time Pad) encryption program on Planet Source Code. I have seen lots of these in Visual Basic (and one in straight C), but none in Visual C++/C++ so I decided to try and make one. Included in the .ZIP is the encrypting and decrypting software code. Also included are the sources I read to make this. This program takes a text file (or bitmap) and encrypts it. The output is an encrypted file and a pad (which are the SAME size). To unencrypt, all you have to do is run the decryptor using the two files generated. More instructions are given in the download! Since this is my first encryption attempt, I WELCOME any constructive critisism (i.e. tell me where I went wrong, or point me to an article I should read).


Just open the Visual C++ project files for the two programs to get going.
Floor.txt and in.bmp are included as examples of what can be encrypted and decrypted.

All you need to do for the decryptor is present the files xxx.dat and pad.dat in the directory of the decryptor. xxx.dat and pad.dat are generated with the encryptor. This yields a out.dat

This is kept general as a demonstration of good security practices.


File List:
OTPENCRYPTION/
OTPENCRYPTION/PadEncrypt/
OTPENCRYPTION/PadEncrypt/Floor.txt
OTPENCRYPTION/PadEncrypt/PadEncrypt.cpp
OTPENCRYPTION/PadEncrypt/PadEncrypt.dsp
OTPENCRYPTION/PadEncrypt/PadEncrypt.dsw
OTPENCRYPTION/PadEncrypt/PadEncrypt.ncb
OTPENCRYPTION/PadEncrypt/PadEncrypt.opt
OTPENCRYPTION/PadEncrypt/PadEncrypt.plg
OTPENCRYPTION/PadEncrypt/in.bmp
OTPENCRYPTION/PadEncrypt/~VC1435.tmp
OTPENCRYPTION/PadUnencrypt/
OTPENCRYPTION/PadUnencrypt/PadUnencrypt.cpp
OTPENCRYPTION/PadUnencrypt/PadUnencrypt.dsp
OTPENCRYPTION/PadUnencrypt/PadUnencrypt.dsw
OTPENCRYPTION/PadUnencrypt/PadUnencrypt.ncb
OTPENCRYPTION/PadUnencrypt/PadUnencrypt.opt
OTPENCRYPTION/PadUnencrypt/PadUnencrypt.plg

Similar code
BitCrypt - Bitwise encryption with XOR addition (Popularity: ) : This project is a DLL that will allow you to implement the BitCrypt algorithm. This algorithm has many benefits and very few drawbacks.

Benefits:
- Use of two methods to securely encrypt data.
- Easy to use interface using basic string types.
- Binary ...

CLogger (Computer Logger) (Popularity: ) : This program will set itself up into your computer using batch files the first time it is run. It keeps track of everytime your computer is run and logs the time and date into a file. The program is password ...
A Beginner's Simple Encryption Tutorial / Example (Popularity: ) : Encrypts and Decrypts a file. This is not an "uncrackable" type of encryption but once you can understand the basics of this type of file encryption you CAN make better ones than me. This is just a quick example of ...
simple encryption using table (Popularity: ) : It encrypts a text message of no longer than 255 characters by using an encryption table to a file. another person then decrypt the text file in to the original message.
Change NT Password (Popularity: ) : I really enjoy all the Net() api functions so in trying to learn C++ I started with the ChangePassword API call. I simply wanted a dll which would encapsulate this function so that a vb user could make a very ...
StampIt (Popularity: ) : UPDATED!!! New V 1.5 Here is a simple lisp routine that request you to give a point, gets your current textstyle and places the current date and time, format is "August 12 2002 - 11:58:02 am". New version updated to ...
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os
stats
downloads 474
version
size in Kb 81
popularity   7077/7915821
user rating 5/10
ad


New Code
Popular Code