Hi, I have been making a program that encrypts files. It works, but it compresses them. It only does it a little bit, but it does. It's weird. Why is it doing this?
I have attached a zipped folder with the code, binary, an encrypted file, and the original file. The key to decrypt the file is "hello" without quotes. Once you decrypt the included file, you'll see that they are now the same size.
TheBeast32
54
Posting Whiz in Training
Recommended Answers
Jump to PostI see a monstrous fragment in attached code:
string FileName; char __TEMP__[256]; cin.getline(__TEMP__, 256); FileName = __TEMP__; delete [] __TEMP__;
Don't continue. You try to deallocate (free) stack (automatic) array. Of course, now program stack is corrupted, program behaviour is undefined and so on...
Apropos, see …
All 4 Replies
ArkM
1,090
Postaholic
Duoas
1,025
Postaholic
Featured Poster
TheBeast32
54
Posting Whiz in Training
aminit
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.