473,396 Members | 2,010 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,396 software developers and data experts.

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 1292
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**@discussions.microsoft.com> 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**@discussions.microsoft.com> 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**@discussions.microsoft.com> 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**@discussions.microsoft.com> 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
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
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...
4
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...
3
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...
6
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? ...
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...
2
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...
10
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...
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
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...

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.