473,394 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

hide source code

I would like to know if there is anyway to hide the string variables by
simply opening it from a notepad.

string mString = "thequick";

can view easily by opening the application file from Notepad.

Nov 17 '05 #1
2 3936
iWrite <iW****@discussions.microsoft.com> wrote:
I would like to know if there is anyway to hide the string variables by
simply opening it from a notepad.

string mString = "thequick";

can view easily by opening the application file from Notepad.


Well, you could always have encrypted versions of the strings in your
code, and decrypt them at runtime. There are some obfuscators which do
this for you automatically.

It won't stop anyone sufficiently determined though. I hope this isn't
a way of hard coding connection details (or other sensitive
information) in your class though - security through obscurity isn't
real security.

See http://www.pobox.com/~skeet/csharp/obfuscation.html

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #2
On Tue, 31 May 2005 15:46:11 -0700, iWrite
<iW****@discussions.microsoft.com> wrote:
I would like to know if there is anyway to hide the string variables by
simply opening it from a notepad.

string mString = "thequick";

can view easily by opening the application file from Notepad.

One way not to have the actual strings in your compiled
program is to put only encrypted copies in your source code. Include
a decryption function in your program to decrypt the strings before
you use them.

e.g. Source code:

string mySecretMessage = "Khoor Zruog";
string myRealMessage = Decrypt(mySecretMessage);
DoSomeWork(myRealMessage);

The real text of the message will only exist at runtime, and will not
be present in the executable file on disk.

In this case the decryption function just replaces each character with
the one three places earlier in the alphabet. Pick your
encryption/decryption method depending on how secure you want your
executable file to be.
HTH

rossum
The ultimate truth is that there is no ultimate truth
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Mark | last post by:
Sorry, I'm a newbie to php ;) I was thinking about using php to write the script file, something like: <script type="text/javascript" src="http://insert_url_here.com/myScript.php"></script> ...
2
by: Leon Lien | last post by:
I need to hide my video streaming source URL such as mms:\\123.11.123.24\test.wmv I know how to hide image source using another ASP at the <img src=> tag. But what about streaming Video ? Is...
13
by: Mike | last post by:
Apparently there is now a way to hide html source code. How it done? For example see: See http://www.eteamz.com/banksblaze/
6
by: Lea | last post by:
Not only does my boss want to hide files from some developers, he wants to be able to hide different files from different users. We already use source control to ensure that people cannot check...
13
by: Fernando Fernández | last post by:
Hi people :)) I am Fernando and I have made a web application with HTML and JavaScript. Now I would like to hide the source code, or at least my JavaScript source code. Is it possible? is there...
6
by: Das | last post by:
Hi everyone, I'm using datagrid control to display the data. I want to hide column to be displayed into the data grid. I'm using the code as given below: Method given below is used to bind the...
5
by: J | last post by:
Ok, they have changed a lot of stuff in VB.net. How in the world do you hide a column on the Datagrid? -- Jason
64
by: Bayazee | last post by:
hi can we hide a python code ? if i want to write a commercial software can i hide my source code from users access ? we can conver it to pyc but this file can decompiled ... so ...!! do you...
47
by: SOLAV | last post by:
This is the only working way to completely hide your JavaScript code from the client just like PHP or ASP code. Here we'll need the help of PHP. Here is the code: index.php...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.