Thread: encrypt input message

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    3

    encrypt input message

    hello every1 !!!

    i have trouble writing tis encrypt program and hope some1 will give me a guide.

    how to i accept a encrypt message and to use a decrypting key from 0 to 9.The ascii code which link to the digit will be return and to subtract 30H from Ascii to ocnvert back to binary.

    thanks!!!!!!!!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Decryption is simply the reverse of encryption - so if your encrypt added some constant, you then need to subtract to reverse it.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem in message handling VC++
    By 02mca31 in forum Windows Programming
    Replies: 5
    Last Post: 01-16-2009, 09:22 PM
  2. Need some help with C program writing
    By The_PC_Gamer in forum C Programming
    Replies: 9
    Last Post: 02-12-2008, 09:12 PM
  3. socket message sending and receiving problem
    By black in forum C Programming
    Replies: 5
    Last Post: 01-15-2007, 04:46 AM
  4. Custom Made Safe Input Function
    By Beast() in forum C Programming
    Replies: 6
    Last Post: 08-21-2004, 10:19 PM
  5. Character arrays in a Structure
    By vsriharsha in forum C Programming
    Replies: 7
    Last Post: 07-11-2004, 05:36 PM