Thread: Making a file encrypter!

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    1

    Making a file encrypter!

    Hello all!

    Yesterday I decided making a file encrypter would be fun, and so off I went!

    What I want it to do:

    -Take an .exe
    -Encrypt that .exe
    -Add to it the decryption process, so that when the file is run, it will automatically decrypt and continue running the original program.

    What I've got so far:
    I began writing this, but found a pretty good example source code which works, and has much of what I was aiming for, but it doesnt add the decryption routine to the file (I believe this is referred to as a 'loader')
    ( http://www.planet-source-code.com/vb...tp%2FA75078212 )

    So I'm wondering
    How hard is it to modify this code to add in what I'm looking for, or would it be easier to start from scratch?
    For some reason I'm thinking that this last part requires about another thousand lines of code, but hopefully I'm wrong there :P

    I also assumed there would already have been a tutorial (or two!) written about this, but I wasn't able to find one, so if anybody knows of one that would be great too!

    looking forward to all replies Thanks!

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    > For some reason I'm thinking that this last part requires about another thousand lines of code, but hopefully I'm wrong there :P

    Unfortunately, you aren't.

    The easiest way is to look for libs which already offer that functionality. What you are looking for is self-extracting executables that decompress themselves at runtime, or Exe Packers by some.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Madly in anger with you
    Join Date
    Nov 2005
    Posts
    211

    Intel Core 2 Quad Q6600 @ 2.40 GHz
    3072 MB PC2-5300 DDR2
    2 x 320 GB SATA (640 GB)
    NVIDIA GeForce 8400GS 256 MB PCI-E

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  2. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 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