Thread: file

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    12

    file

    Hello i nead code to open a file then encrypt it and save it agian
    thank you. I need the help because i dont know how to encrypt.

  2. #2
    Registered User ski6ski's Avatar
    Join Date
    Aug 2001
    Posts
    133
    Encription is simple, or you can use a multiple matrix to make 128bit encription. (I think that is how it is done) I know useing a matrix is realy good to encript a message, because we did that in our math class.

    For matrix, you need to learn alot about algebra!

    For simple, just reverse the alphabet a=z b=y c=x...........

    As for >> nead code to open a file then encrypt it and save it agian

    Look up ofstream and ifstream and include fstream.h
    i is for in and o is for out.
    C++ Is Powerful
    I use C++
    There fore I am Powerful

  3. #3
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    another way, this is a method i used for a password program - take the text you want to encrypt as an array. Cast each member to an int. Then add the present value to te last value and the next value, tis way it will be different for every string entered.
    Monday - what a way to spend a seventh of your life

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  2. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  3. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  4. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 10:57 AM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM