473,761 Members | 7,710 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hide files from some developers

Lea
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 out code that they should
not change. He wants some of the code to not be visible
to some developers.

The project is managed C++. All of the code is required
to successfully build the application. I thought to make
libraries so that code could be accessible as DLLs
through adding a reference, but these would need to be
source controlled and rebuilt when code changes. Also we
would need various libraries to hide the different parts
of the code for different people. This sounds like making
lots of places for things to go wrong.

My boss asked me "isn't there just some way you can hide
individual source code files in .Net?" I told him not to
my knowledge.

Any ideas of how I could achieve the hiding of some files
for some people in our .Net project would be appreciated.

-- Leah
Jul 21 '05 #1
6 1321
Well working with people you trust maybe ?

Apart using DLLs I don't see how it could work (they need the source to be
able to compile, this left us with using a DLL instead of the source code).

The overall goal may help (does this code contains sensitive information or,
what ?)

Patrice

--

"Lea" <Le**@discussio ns.microsoft.co m> a écrit dans le message de
news:02******** *************** *****@phx.gbl.. .
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 out code that they should
not change. He wants some of the code to not be visible
to some developers.

The project is managed C++. All of the code is required
to successfully build the application. I thought to make
libraries so that code could be accessible as DLLs
through adding a reference, but these would need to be
source controlled and rebuilt when code changes. Also we
would need various libraries to hide the different parts
of the code for different people. This sounds like making
lots of places for things to go wrong.

My boss asked me "isn't there just some way you can hide
individual source code files in .Net?" I told him not to
my knowledge.

Any ideas of how I could achieve the hiding of some files
for some people in our .Net project would be appreciated.

-- Leah

Jul 21 '05 #2
Hiring trustworthy employees is probably the best solution. If you
can't trust some employees with certain source, you have a big problem
on your hands.

Technically speaking your only option is to compile to DLLs and put
those is the repository. However, it's not impossible, nor even
difficult to decompile .Net binaries, so even this will not deter a
real thief.

Jul 21 '05 #3
Your boss has trust issues. Two bits of advice:

1) Have your boss consult a lawyer to make sure that legal agreements with
vendors and contractors are solid and can work in your company's favor in
the event of the exposure of a trade secret.

2) Create a build server that builds your app every day. Take a look at
NAnt or NMake to automate the build. Create a script to automatically copy
the results of the build to a share that allows specific access to the
employees who need it. Now, folks who need to refer to the code do not have
direct access to it.

Note that #2 is a partial victory at best. You create three issues: (a) a
loss of efficiency since a developer cannot see the code he or she is
calling, making it more difficult to use the code, (b) a sense among the
staff of distrust, which engenders resentment and lowers productivity, and
(c) no real protection of trade secrets since a developer who knows what
module the trade secret lives in can decompile the module. Of course, you
could run the code through an obfuscator during your nightly builds. This
buys you a little but not a lot.

3) Partition your systems so that key logic is only created and maintained
by internal, trusted, staff members, while other, less sensitive, work is
performed by consultants and vendors.

In Microsoft IT, we make use of consultants and vendors all the time. We
rely on #1, make use of #3, but rarely if ever use #2. No one wants to work
in an environment where they aren't wanted.

HTH,
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Lea" <Le**@discussio ns.microsoft.co m> wrote in message
news:02******** *************** *****@phx.gbl.. .
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 out code that they should
not change. He wants some of the code to not be visible
to some developers.

The project is managed C++. All of the code is required
to successfully build the application. I thought to make
libraries so that code could be accessible as DLLs
through adding a reference, but these would need to be
source controlled and rebuilt when code changes. Also we
would need various libraries to hide the different parts
of the code for different people. This sounds like making
lots of places for things to go wrong.

My boss asked me "isn't there just some way you can hide
individual source code files in .Net?" I told him not to
my knowledge.

Any ideas of how I could achieve the hiding of some files
for some people in our .Net project would be appreciated.

-- Leah

Jul 21 '05 #4
Well working with people you trust maybe ?

Apart using DLLs I don't see how it could work (they need the source to be
able to compile, this left us with using a DLL instead of the source code).

The overall goal may help (does this code contains sensitive information or,
what ?)

Patrice

--

"Lea" <Le**@discussio ns.microsoft.co m> a écrit dans le message de
news:02******** *************** *****@phx.gbl.. .
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 out code that they should
not change. He wants some of the code to not be visible
to some developers.

The project is managed C++. All of the code is required
to successfully build the application. I thought to make
libraries so that code could be accessible as DLLs
through adding a reference, but these would need to be
source controlled and rebuilt when code changes. Also we
would need various libraries to hide the different parts
of the code for different people. This sounds like making
lots of places for things to go wrong.

My boss asked me "isn't there just some way you can hide
individual source code files in .Net?" I told him not to
my knowledge.

Any ideas of how I could achieve the hiding of some files
for some people in our .Net project would be appreciated.

-- Leah

Nov 22 '05 #5
Hiring trustworthy employees is probably the best solution. If you
can't trust some employees with certain source, you have a big problem
on your hands.

Technically speaking your only option is to compile to DLLs and put
those is the repository. However, it's not impossible, nor even
difficult to decompile .Net binaries, so even this will not deter a
real thief.

Nov 22 '05 #6
Your boss has trust issues. Two bits of advice:

1) Have your boss consult a lawyer to make sure that legal agreements with
vendors and contractors are solid and can work in your company's favor in
the event of the exposure of a trade secret.

2) Create a build server that builds your app every day. Take a look at
NAnt or NMake to automate the build. Create a script to automatically copy
the results of the build to a share that allows specific access to the
employees who need it. Now, folks who need to refer to the code do not have
direct access to it.

Note that #2 is a partial victory at best. You create three issues: (a) a
loss of efficiency since a developer cannot see the code he or she is
calling, making it more difficult to use the code, (b) a sense among the
staff of distrust, which engenders resentment and lowers productivity, and
(c) no real protection of trade secrets since a developer who knows what
module the trade secret lives in can decompile the module. Of course, you
could run the code through an obfuscator during your nightly builds. This
buys you a little but not a lot.

3) Partition your systems so that key logic is only created and maintained
by internal, trusted, staff members, while other, less sensitive, work is
performed by consultants and vendors.

In Microsoft IT, we make use of consultants and vendors all the time. We
rely on #1, make use of #3, but rarely if ever use #2. No one wants to work
in an environment where they aren't wanted.

HTH,
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Lea" <Le**@discussio ns.microsoft.co m> wrote in message
news:02******** *************** *****@phx.gbl.. .
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 out code that they should
not change. He wants some of the code to not be visible
to some developers.

The project is managed C++. All of the code is required
to successfully build the application. I thought to make
libraries so that code could be accessible as DLLs
through adding a reference, but these would need to be
source controlled and rebuilt when code changes. Also we
would need various libraries to hide the different parts
of the code for different people. This sounds like making
lots of places for things to go wrong.

My boss asked me "isn't there just some way you can hide
individual source code files in .Net?" I told him not to
my knowledge.

Any ideas of how I could achieve the hiding of some files
for some people in our .Net project would be appreciated.

-- Leah

Nov 22 '05 #7

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

Similar topics

12
3068
by: Mark Buch | last post by:
Hi, is it possible to protect the python sourcecode? I have a nice little script and i dont want to show everbody the source. Im using python on a windows pc. Thank you - Mark
8
1425
by: markus | last post by:
I have an application that I think was developed using some form of Borland C with a folder for BIG images with the extension .fre. When I try to view them they cannot be read even by changing the extension to jpg, bmp, zip, etc. I also used some utilities for resource extraction with no success. I know the images are there and there has to be a way to show and convert them to a known format. I have seen libjpeg.dll and zlib.dll in...
4
3828
by: Sharon | last post by:
hi i'm installing ASP app on my client server , is there any option i can hide the ASP.Net code from him ? one way is using library (dll) and minimize the server code any other idea ? thank you Sharon
3
1345
by: Frank Hofmann | last post by:
Hi there, I'm new to .Net and programming of web sites. But I have to build a solution which can do the following: Only authorized people can connect to a specific site. They have to login with user name and password. This works fine with the authenticated forms feature of ASP.NET. The site itself should provide the download of WAV files.
6
2200
by: Peter Row | last post by:
Hi, Can someone give me a set of steps for an ASP.NET project (well actually its just a VB.NET class DLL that implements HttpHandler) that will work when moved to another developers machine? Here are some specifics: 1) The code, project/solution files are in MS Visual Source Safe
64
7548
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 have any idea about this ...? --------------------------------------- First Iranian Open Source Community : www.python.ir
2
3924
by: FlashForumKB | last post by:
Here is a chance for you to make my developers look bad. I have hired these guys to development my website which, in part, has music demos available to my users. These demos must include the entire piece with a spoiler in the background so users can not record them freely. The files must be secure! My original request was to have them build an application that merged the two files (spoiler and original music) into a single mp3 file and have...
10
7128
by: roberto | last post by:
I'm to deploy a .NET DLL which internally communicates with the WS. I don't want others to see internal complexity of the web service classes generated by "Add a Web reference" VS option. As a WebSerive contains a lot of methods and different types creating a web proxy class manually is too time consuming. I tried to edit a class manually, changing the highest-level access modifiers from public to internal - this way I could use the...
0
10781
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 inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not a new concept, there is a concept called Steganography which enables to conceal your secret...
0
9531
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9345
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10115
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9775
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5229
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3881
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.