Solved

making contents of VB .exe unreadable

Posted on 1997-11-08
6
350 Views
Last Modified: 2008-03-17
what can I do to a VB .exe file to make ALL of the contents unreadable, including the "text" parts?
can it all be encrypted somehow?
pklite does not work with VB exe's.
0
Comment
Question by:rfb
  • 3
  • 2
6 Comments
 
LVL 3

Expert Comment

by:vmpn
ID: 1440273
It sould work with VB5 files because they can be compiled to machine code.
0
 
LVL 3

Expert Comment

by:vmpn
ID: 1440274
The other way is to have your own encryption algorithm for strings (go to ftp.simplenet.com, have encryption algorithms), you would turn all your string into constants that would have encrypted text in them and to use them you would do:

msgbox decrypt(mystring)

for encrypting algorithms you can use WIndows 95 built in. Very Hard to break.
go to:
http://premium.microsoft.com/msdn/library/techart/vbcrypto.htm
You need to be a member of msdn, but registration is for free (I think).

Sincerely,
VMPN



0
 
LVL 1

Author Comment

by:rfb
ID: 1440275
I really don't understand the answer. Just to be clear. I need to encrypt the contents of the .exe and be able to have it be able to execute while encrypted.
??
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Expert Comment

by:vmpn
ID: 1440276
I say, do not encrypt text by encrypting exe, but encrypt text in the source code, and then decrypt it while running.

Sincerely,
VMPN
0
 
LVL 1

Author Comment

by:rfb
ID: 1440277
STILL., THERE ARE COMMANDS LIKE "CHANGE DIRECTORY" AND OTHER COMMAND-LINE COMMANDS THAT ARE CLEARLY VISIBLE IN THE .EXE FILE. i AM LOOKING FOR A WAY TO CONCEAL ALL PLAIN LANGUAGE FROM THE .EXE PRIOR TO SENDING OUT TO THE USER.
eNCRYPTING THE TEXT DOES NOT SUFFICE..

0
 
LVL 3

Accepted Solution

by:
ChrisLewis earned 60 total points
ID: 1440278
Don't bother.  VB executables are enherently "stringy".  Other than encrypting your strings as VMPN suggested, there is no way to keep VB from doing what it does.  There's also stuff that would be visible in ANY exe, such as the copyright & trademark  information, version information, needed DLL files, references to AActiveX controls & objects etc.  These are stipulated by the Windows API, & there is no way to get around it.

As for the VB stuff, well, you could change the names of all your controls so they look like junk (rather than Label1, Command1 etc), but if you want to totally remove & encrypt,  VB is not your answer.

Sorry,

Chris
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question