Thread: File Encryption...

  1. #1
    |<4D4\/3r
    Guest

    Question File Encryption...

    Lets say you have a program that asks the user for a password to proceed and the password that you check is in a text file, how do you encrypt that text file that has the password in it?

  2. #2
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    Why not use the seach button and seach for "encryption" this has been discusses soooooooooooooooooooooooo much lately its not even funny.
    "only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein

  3. #3
    Registered User |<4D4\/eR's Avatar
    Join Date
    Mar 2002
    Posts
    6
    sorry me dumb

  4. #4
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    There are hundreds, maybe even thousands of encryption algos out there.

    Easy way to do this is to add the password somewhere in the file, and encrypt it.

    Simple encryption would be to use XOR encryption or pack the bytes together in a low high fashion or something


    #define PACK16(b1,b2) (WORD)((b1<<8)+b2)

    or something like that - easy to break, but....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  2. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM
  3. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM
  4. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM