fabianhjr wrote:thetan, apples elped me figure out strlen() was getting Null Byte poisoned.
Now I am porting everything to use vector<char>. I will post back when I archieve it.
Thats why you don't run strlen() on the file contents. Instead, you do like i did and create an additional argument for cipher() called clen, which is the length of the content to en/decrypt. The content length is either gathered from the stat() call on the file or a strlen() on an unencrypted string.
Other then that tgoe's point stands. The fact that you're going straight to C++ and hopping straight on the STL band wagon you're seriously cheating yourself and possibly fucking yourself into a self dug grave.
perhaps you're going about this all wrong. Get yourself a good book, otherwise you'll be dragging your dick around in the mud bashing your head against walls countless times.