The simpler version of two programs doesn't work......

This is a discussion on The simpler version of two programs doesn't work...... within the C++ Programming forums, part of the General Programming Boards category; I wrote an encryption program that converted every ascii val to hex, then to decode it converted it back. just ...

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    52

    The simpler version of two programs doesn't work......

    I wrote an encryption program that converted every ascii val to hex, then to decode it converted it back. just for simple encryption.... and it worked on all files, even media files. then i wrote an improved one to add 3 to every ascii val of a file, or whatever value the user specifies, and it doesn't work.... but it does work for text files, just not for media files. here's the source for both (the second one is actually commented for once....). can somebody help me figure out why the second one can't encode media files, but the first one can?

    qenc is the simple version, scrypt2 is the more complex version.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    52
    i know i'm asking a lot, just handing out two programs and asking what's wrong, but i'm really confused as to why one of them only partially works.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. linux version and free bsb
    By code2d in forum Tech Board
    Replies: 22
    Last Post: 04-14-2007, 09:05 PM
  2. How to set File Version of VC++ 6 dll
    By mercury529 in forum Windows Programming
    Replies: 3
    Last Post: 12-08-2006, 01:49 PM
  3. Programs requires portforwarding
    By Da-Nuka in forum Networking/Device Communication
    Replies: 6
    Last Post: 08-28-2005, 12:45 PM
  4. Will console programs still work in WinXP x64?
    By trenzterra in forum C++ Programming
    Replies: 8
    Last Post: 04-24-2005, 03:46 AM
  5. If you are employed as a programmer, please look
    By Flood Fighter in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 09-28-2004, 02:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21