Embed a Form with output file

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Feb 2009
Posts: 5
Reputation: okarvian is an unknown quantity at this point 
Solved Threads: 0
okarvian okarvian is offline Offline
Newbie Poster

Embed a Form with output file

 
0
  #1
Feb 27th, 2009
I've encrypted a file from my local machine, but now I'm looking to make it exe file. User just double click on it and a form will be displayed to ask for the password and decrypt the file. I don't know how to embed a form with encrypted file.

Can anybody help me out
thanks in advance
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Embed a Form with output file

 
0
  #2
Feb 27th, 2009
You cna add the item as a resource to your application, however displaying it, maybe more complex if the user doesnt have the facilities to decrypt or use a relevant app to display it. That would be the bigger stumbling block.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 5
Reputation: okarvian is an unknown quantity at this point 
Solved Threads: 0
okarvian okarvian is offline Offline
Newbie Poster

Re: Embed a Form with output file

 
0
  #3
Feb 27th, 2009
Thanks LizR's for you quick response. Basically I'm developing an application for encryption and decryption of a file. User select a file inside my application and encrypt the file to destination folder, In this step I just want to create the encrypted file as a exe file.
User just double click on it without installing my application and get the decrypted file.
How can I do this.
Please help me.
thanks
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Embed a Form with output file

 
0
  #4
Feb 27th, 2009
Well if its a resource its available, to use (use google) so all you would need to do is write either a console or windows form based app that asks them for password etc, and then where to save the file
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 436
Reputation: JerryShaw is on a distinguished road 
Solved Threads: 72
JerryShaw JerryShaw is offline Offline
Posting Pro in Training

Re: Embed a Form with output file

 
0
  #5
Feb 28th, 2009
Is the file your application encrypts an executable or something like a text file ?

Your application could use a Trojan technique. You would need a separate small exe that knows how to request the password, inspect the cypher key, decrypt the (named) embedded file to disk and perhaps call upon windows to open that new file.

To place the file into the trojan, you would need to access (add) the file to the resources section of the trojan exe. Then rename the trojan to the name you desire. Once the user runs this trojan exe, it would popup the password dialog. Once they enter the correct password, you would write the file from the resources section onto the hard drive. Then, if the system supports the file extension, you could launch it.

sounds very do-able. Have fun with it.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC