Fishery
Catch many information here
Archives
-
No Comments
Another possible diversion is using a technique I’ve discussed before: strong-naming your assembly. Unfortunately, the best you can do with strong-naming your assembly is that you can prevent others from reverse-engineering your code and putting your brand on it. It doesn’t prevent others from at least being able to see the underlying code.
-
No Comments
There are a couple of options you may try to prevent a user from reverse-engineering your assembly. In this section, I’ll cover the following techniques:
• Native image generation
• Strong-naming the assembly
• Hiding the implementation via a Web service
• Obfuscation
Native Image Generation
One technique you may try is to create a native image of your assembly. This is done via the ngen tool that comes with .NET. This tool doesn’t work with CIL source files; rather, it takes a .NET assembly and transforms it into a native assembly. For example, you can create a native image of AI.dll as follows:
ngen AI.dll
The tool creates a native image of the assembly, but it puts the result into the Native Image Cache (NIC). You can see what’s in the cache by using the /show argument of ngen:
ngen /show
Unfortunately, the results aren’t what you might expect. The problem is that you still need the original assembly for the client code to run properly. ngen essentially creates implementations of your methods, but the metadata is contained in the original assembly. If you try to run an assembly that uses AI.dll after you employed ngen on it and deleted (or renamed) the source AI.dll, the client will throw a FileNotFoundException.
The runtime will always load the CIL-based assembly, but it’s smart enough to use the native implementations if they exist in the NIC. Therefore, you can’t distribute a native image without the regular assembly. Someone will always be able to reengineer the code like I did before, and if you rename the resulting assembly and target the client to use this new assembly, you can prevent the runtime from using the native implementations. -
No Comments
The CAS mechanism in .NET allows for tighter control over code usage of resources by the user of a particular machine. For example, let’s say I bought a component object model (COM) server from a component vendor that has one coclass called CCompletelySafe that implements the IItsOK interface. This interface has one method called NothingBadWillHappen(). To get this to run, I add the reference to my VB application, and start coding away, like so:
Dim oOK As IItsOK
Set oOK = CreateObject(”TrustMe.CCompletelySafe”)
oOK.NothingBadWillHappen()Unfortunately, in no time at all I’ve e-mailed everyone in the company a bunch of links that will probably get me fired. Plus, my files are being deleted at a furious rate, and my computer is also creating a bunch of HTTP traffic. The real problem here is that I can’t determine what that method call will do until I invoke it.
-
No Comments
Are you people fed up into looking after less number of channels in a poor quality? The directsattv.com brings you a better solution to solve your problems. It provides you more number of channels to view on in a very better quality. This direct T V business provide professional installation for your better convenience. Do you own any public businesses like bars, restaurants, casino, barber shop or saloon, gym, retail store or shop, bank, lobby or waiting area, office or coffee shop? , then this directsattv.com provides a very good idea for improving your business in increasing the number of customers by providing programming like NFL Sunday ticket, best sports, entertainments and news available anytime, which will insists the customers to come to your place every day or also during their leisure time.
This direct TV business provides a way to hear music even in your office environment through XM satellite radio. You will be provided a best and most advanced satellite dishes which is having an expert installation. The channel line have different programming categories like arts & entertainment, movies, music & news & more .They also provide channels in packages in which you can choose your own package of channels which you want. They also provide many special commercial direct TV offers when you order through phones. -
No Comments
All of the .NET class definitions types are in the System.Security.Principal namespace, and all can be found in the mscorlib assembly. Some classes define what identities and principals there are along with their relationship to each other. Other classes exist that help in defining how identities and principals are established for the current thread of execution. In this section, I’ll cover the basics of these classes.

