Crazy Characters?!

This is a discussion on Crazy Characters?! within the C Programming forums, part of the General Programming Boards category; I am fairly new to C but I recently made an encryption encoding program....it's not very complex....uses a pattern of ...

  1. #1
    Unregistered
    Guest

    Angry Crazy Characters?!

    I am fairly new to C but I recently made an encryption encoding program....it'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?

    Thanks..!

  2. #2
    Registered User
    Join Date
    Jan 2002
    Posts
    552
    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
    Location
    Groningen (NL)
    Posts
    2,386
    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, 11:39 PM
  2. HELP!!!!emergency Problem~expert please help
    By unknowppl in forum C++ Programming
    Replies: 9
    Last Post: 08-21-2008, 07:41 PM
  3. Replies: 10
    Last Post: 07-10-2008, 04: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, 07:05 AM
  5. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 05:54 PM

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