?
Solved

Using Strong name to protect my Classlibrary...

Posted on 2009-02-18
10
Medium Priority
?
317 Views
Last Modified: 2013-11-07
How to protect my class libarary from being used by other programmer using strong name.
sn.exe

I found this but can't make it work... Please help
http://blog.devstone.com/aaron/archive/2005/02/22/462.aspx

Thanks
0
Comment
Question by:JackOfPH
  • 6
  • 4
10 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 23678850
Assigning a Strong-Name Key to the Class Library
http://msdn.microsoft.com/en-us/library/ms227566(VS.80).aspx
0
 
LVL 15

Author Comment

by:JackOfPH
ID: 23678941
How can I test if this is working?
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 23678999
I thought you can easily check it with then next command:
sn -v strong_name.dll
(so: sn -v yourdll.dll)
0
Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

 
LVL 15

Author Comment

by:JackOfPH
ID: 23679040
ok... it said that the assembly e:\Mydll.dll is valid.

But what does it do?

Please explain... I tried to create a new project and add reference to the dll. Still I can use the dll...

Please explain....

Joseph
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 23679054
SNs are not any security enhancement; they enable unique identification and side-by-side code execution.

Now we know that SNs are not security enablers. Where to use them then? We can see two scenarios where SNs can be used:

Versioning
Authentication

More information in detail: http://www.codeproject.com/KB/security/StrongNameExplained.aspx
0
 
LVL 15

Author Comment

by:JackOfPH
ID: 23679135
From the link below...  In the Friendly Discovery portion, Please check...
Can't do the 2nd step... Please, help....

http://blog.devstone.com/aaron/archive/2005/02/22/462.aspx

0
 
LVL 53

Expert Comment

by:Dhaest
ID: 23679161
You can sign it (link it) through the al

http://msdn.microsoft.com/en-us/library/xc31ft41.aspx
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 23679173
Or in your class-files:

Imports System
Imports System.Reflection

<assembly:AssemblyKeyFileAttribute("TestKey.snk")>
0
 
LVL 15

Author Comment

by:JackOfPH
ID: 23688702
I can't make it work... :(
0
 
LVL 53

Accepted Solution

by:
Dhaest earned 2000 total points
ID: 23690190
>> How to protect my class libarary from being used by other programmer using strong name.
sn.exe

I think you need something else than a strong name. You'll need some code security
http://msdn.microsoft.com/en-us/library/930b76w0(VS.71).aspx
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

809 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