Encryption program writing

This is a discussion on Encryption program writing within the C++ Programming forums, part of the General Programming Boards category; Hi, Ive written encryption programs before, but I need help, cos Ive got a great idea on a method of ...

  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
    21,727
    You might want to take a look at some of the websites listed from dmoz's cryptography subdirectory
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    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, 10:17 PM
  4. Simple Encryption Program
    By xamlit in forum C Programming
    Replies: 4
    Last Post: 12-29-2005, 09:03 PM
  5. Help with a file writing program
    By pritesh in forum C Programming
    Replies: 3
    Last Post: 11-11-2001, 12:56 AM

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