473,395 Members | 1,668 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,395 software developers and data experts.

Protecting DLLs

In my DLLs, I'm protecting my modules as follows

<StrongNameIdentityPermission(SecurityAction.LinkD emand, _
PublicKey:="00240000048000009400000006020000" + _
"00240000525341310004000001000100" + _
"c17577e2aa99d873e07f896b4dc8233d" + _
"687fbfac6e0b0b403b997f75a2b252ff" + _
"ae47abf328bf4481d2184460e3d364b0" + _
"ed7bba85d6ddd96f994e3397ea817ef3" + _
"871ff0cfbd5590ffbba44963ae5e8784" + _
"de51b58df9059d4eda4dd638a4ae147a" + _
"d2f3a5b674780b330cedd93d27a37728" + _
"1c6056092c2ac48a8b27c53631f7d5b6")> _
Public Module xyz
...
End Module

When I try to access that module from another EXE, it is raising an exception (correctly).

Now, my question, how can I make my EXEs access that module??

Thanks in Advance

JP

--
Message posted via http://www.dotnetmonster.com
Nov 21 '05 #1
6 897
Now, my question, how can I make my EXEs access that module??


Give it a strong name (with the AssemblyKeyFile or AssemblyKeyName
attributes) that matches the public key you have specified.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 21 '05 #2
Like

<Assembly: AssemblyKeyFile("V:\Support.dev\Support.snk")>

in the AssemblyInfo.VB ??

--
Message posted via http://www.dotnetmonster.com
Nov 21 '05 #3
Yep :-)

"Jean-Pierre Scerri via DotNetMonster.com" <fo***@DotNetMonster.com> wrote
in message news:1d******************************@DotNetMonste r.com...
Like

<Assembly: AssemblyKeyFile("V:\Support.dev\Support.snk")>

in the AssemblyInfo.VB ??

--
Message posted via http://www.dotnetmonster.com

Nov 21 '05 #4
I'm new to using Public Keys so maybe you could help a bit. How do I create
the "v:\Support.dev\Support.snk" file?

"Jean-Pierre Scerri via DotNetMonster.com" wrote:
Like

<Assembly: AssemblyKeyFile("V:\Support.dev\Support.snk")>

in the AssemblyInfo.VB ??

--
Message posted via http://www.dotnetmonster.com

Nov 21 '05 #5
You will have to generate a key usting SN.EXE Command. Search on the help file for some examples.

--
Message posted via http://www.dotnetmonster.com
Nov 21 '05 #6
Thanks.

"Jean-Pierre Scerri via DotNetMonster.com" wrote:
You will have to generate a key usting SN.EXE Command. Search on the help file for some examples.

--
Message posted via http://www.dotnetmonster.com

Nov 21 '05 #7

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

Similar topics

24
by: Yang Li Ke | last post by:
Hi guys! Anyone know a way so that users purchasing my scripts would not be able to share them with other people ? Yang
6
by: nell | last post by:
Hi all, I've developed a testing application in python, and should supply it in a way that no one (lets say they are regular users) will understand it and edit it. The application source is all...
12
by: Roland Hall | last post by:
I read Aaron's article: http://www.aspfaq.com/show.asp?id=2276 re: protecting images from linked to by other sites. There is a link at the bottom of that page that references an interesting...
2
by: Johann Blake | last post by:
I can hardly believe I'm the first one to report this, but having gone through the newsgroup, it appears that way. I would like to open a solution in the VS.NET IDE that consists of multiple...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
4
by: Bill K | last post by:
Hello All, I've finally written an asp app that is worthy of resale and would like to hear from you who have done the same. What is the best way to protect my application? I would like to stay...
12
by: Dr. Edmund M. Hayes | last post by:
I wrote a access program that works well enough that a handful of people would like to buy it from me. My problem is that if I sell it to someone there is no mechanism that I know of to protect...
10
by: Daniel | last post by:
Hi Guys I remember some strong naming things and keys that i read but cannot recall how to use it. However i am now using CLick Once deployment. Is my code safe when i deploy this way or do i...
3
by: mironline | last post by:
dear friends optimistically I'll suicide this weekend or my eyes going blind with sql exception's RED color; my problem is : I want to encrypt some of my columns in database and use...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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.