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:
After write above code you will see a message on Command Prompt window “key Pair written to D:\Sachindra\SharedAssembly.snk” as shown below:
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: