Solved

making contents of VB .exe unreadable

Posted on 1997-11-08
6
347 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

777 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