encrypt input message

This is a discussion on encrypt input message within the C Programming forums, part of the General Programming Boards category; hello every1 !!! i have trouble writing tis encrypt program and hope some1 will give me a guide. how to ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,453
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 08: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, 08:12 PM
  3. socket message sending and receiving problem
    By black in forum C Programming
    Replies: 5
    Last Post: 01-15-2007, 03: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

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