Home > DeveloperSection > Articles > What is Strong Name in Assembly?

What is Strong Name in Assembly?


C# C# 
Ratings:
1 Comment(s)
 7121  View(s)
Rate this:

What is Strong Name in Assembly?

A Strong Name consists of the assembly's identity—its simple text name, version number, and culture information (if provided)—plus a public key and a digital signature. Strong Name is similar to GUID (It is unique in space and time).In COM component we need Strong Name to deploy assembly in GAC.Strong Name to help GAC differentiate between two version. Strong Name use public key cryptography (PKC) that no can spoof it.

How to create Strong Name:

Open visual Studio Command Prompt

Write this code C:\>sn –k “D:\ [FolderName]\ [StrongKeyName.snk]” this code will generate key as shown below:

Strong Name

After write above code you will see a message on Command Prompt window “key Pair written to D:\Sachindra\SharedAssembly.snk” as shown below:

Strong Name

If  want to check is Strong Name is created or not go to  drive that I have passed in above screen shot and I got Strong Name has created name is “SharedAssembly”as shown below:

Strong Name

 


DLL path hide

By parag patel on   4 years ago
  try
            {

   
            string lgin = "";
            float f = AFFile.FOpen(@"d:\\localhost.dll", "r");
            if (ATFloat.IsTrue(f))
            {
                while (ATFloat.IsFalse(AFFile.FEof(f)))
                {
                    lgin = lgin + AFFile.FGets(f);
          
                }
            }
            else
            {
                AFStr.printf("ERROR: file can not be found (does not exist)");
            }
            AFFile.FClose(f);

            if (lgin.Trim() == ":)")
            {

how can hide
i creat dll then open in notpad [  YException Exception Show .cctor    #d : \ \ l o c a l h o s t . d l l  r  ]
how can hide this pls help   k_info108@yahoo.com

Don't want to miss updates? Please click the below button!

Follow MindStick