Thread: Crazy Characters?!

  1. #1

    Angry Crazy Characters?!

    I am fairly new to C but I recently made an encryption encoding's not very complex....uses a pattern of multiplying and XORing with a key to form the encryption....but..

    The program works fine when I copy from DOS, run the decrypt program I made, and paste...but when I copy from DOS and e-mail the encrypted code to myself, then copy that and try to decrypt it, it becomes all messed up because of different character sets. Is there anyway or is there a character set I have that when I paste into Windows, the characters will be identical to the DOS characters? Or should I just try to find a way to limit what ASCII characters the encrypted text will contain?


  2. #2
    Registered User
    Join Date
    Jan 2002
    Im not sure I understand the question. But I do know that you cannot send binary data trough email. Thats why MIME/UUE and all that stuff was invented. If you want to send binary data through email you will have to send it as an attachment and let the email program your using deal with it, or MIME/UUE it yourself

  3. #3
    Join Date
    Aug 2001
    Groningen (NL)
    I think that if you treat your data just as bytes and not as a character, the encryption and decryption should go correct. Since a byte is a byte, whatever character set you are using.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. HELP!!!!emergency Problem~expert please help
    By unknowppl in forum C++ Programming
    Replies: 9
    Last Post: 08-21-2008, 06:41 PM
  3. Replies: 10
    Last Post: 07-10-2008, 03:45 PM
  4. How do you check how many characters a user has entered?
    By engstudent363 in forum C Programming
    Replies: 5
    Last Post: 04-08-2008, 06:05 AM
  5. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM