Putting a file together with an exe

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2003
Posts: 7
Reputation: rickykoh1983 is an unknown quantity at this point 
Solved Threads: 0
rickykoh1983 rickykoh1983 is offline Offline
Newbie Poster

Putting a file together with an exe

 
0
  #1
Aug 26th, 2003
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???
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,057
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 130
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Putting a file together with an exe

 
0
  #2
Aug 27th, 2003
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, 27 views)
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 3244 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC