Thread: Encryption program writing

  1. #1
    Registered User Finchie_88's Avatar
    Join Date
    Aug 2004
    Posts
    154

    Question Encryption program writing

    Hi, Ive written encryption programs before, but I need help, cos Ive got a great idea on a method of encryption, but I have no idea where to start, the idea involves two arrays where the letters that make up the message are mixed in with random letters and numbers, and then the entire array is written to file, but at the same time, a second array is written to a different file that has the location of all the message characters that are in the first array. This encryption idea could then be made more compilcated by having multidimentional arrays, thats the plan, so, any tips, ideas on where to start???


  2. #2
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    * read the message
    * create an array with all the alphabets and symbols you use
    * randomly equate the message alphabets to aplhabets in the array
    * store the "encrypted" message in a text file
    * store the array whichs tell you what the alphabet actually means in a different file

    I think you should have a look at simple encryption algorithmns such as columnar shift, vigenere etc which are more secure than your method.. for example vigenere uses a key.. so you dont need to save the "index".. instead your message can be encryped and decrypted based on the key(read password)...

  3. #3
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    As a side note, if you really want to get into cryptography, a very good and accessible book is Modern Cryptography: Theory and Practice by Wenbo Mao.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    You might want to take a look at some of the websites listed from dmoz's cryptography subdirectory
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing a Unix Search Program, some questions
    By Acolyte in forum C Programming
    Replies: 3
    Last Post: 09-23-2008, 12:53 AM
  2. encryption / decryption program
    By epidemic in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2008, 06:40 AM
  3. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  4. Simple Encryption Program
    By xamlit in forum C Programming
    Replies: 4
    Last Post: 12-29-2005, 10:03 PM
  5. Help with a file writing program
    By pritesh in forum C Programming
    Replies: 3
    Last Post: 11-11-2001, 01:56 AM