943,507 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3500
  • C++ RSS
Aug 26th, 2003
0

Putting a file together with an exe

Expand Post »
Hi. I am trying to do a program whereby the user needs to enter some information before he/she can use the file (some sort of a lock). My problem is how can I put the file together with the exe so that when i enter the correct information, the exe will run the file???
Similar Threads
Reputation Points: 12
Solved Threads: 0
Newbie Poster
rickykoh1983 is offline Offline
7 posts
since Aug 2003
Aug 27th, 2003
0

Re: Putting a file together with an exe

I don't know if this makes sense or is what you're asking for. However, could you encrypt the file? And then provide a decryption algorithm in the exe file. If the right information is provided, the contents of the file are read into some sort of buffer and decrypted? Perhaps that's nothing more than restating your question?

Perhaps you could use the blowfish algorithm? I keep hearing about it all over the place although I don't really have experience with its uses/purpose. As far as I can tell, it's meant simply for passwords or short words and phrases. If not to encrypt the file, itself, you should be able to use it to encrypt a password or something the user must enter before the file can be accessed?

In any case, I'm attaching the C++ implementation of the blowfish algorithm.
Attached Files
File Type: zip bfsh-con.zip (9.0 KB, 43 views)
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: DOS C++, pulling boot order and hard drive parameters,
Next Thread in C++ Forum Timeline: New To Programming = ME!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC