Click here to Skip to main content
15,887,413 members
Home / Discussions / C#
   

C#

 
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
devvvy26-Aug-13 20:02
devvvy26-Aug-13 20:02 
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
Eddy Vluggen26-Aug-13 23:15
professionalEddy Vluggen26-Aug-13 23:15 
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
Dave Kreskowiak27-Aug-13 2:12
mveDave Kreskowiak27-Aug-13 2:12 
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
devvvy27-Aug-13 2:19
devvvy27-Aug-13 2:19 
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
Dave Kreskowiak27-Aug-13 2:42
mveDave Kreskowiak27-Aug-13 2:42 
AnswerRe: Strongname vs Obfuscation - resistant to tampering? Pin
jschell27-Aug-13 9:36
jschell27-Aug-13 9:36 
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
devvvy27-Aug-13 12:44
devvvy27-Aug-13 12:44 
AnswerRe: Strongname vs Obfuscation - resistant to tampering? Pin
Keld Ølykke29-Aug-13 7:17
Keld Ølykke29-Aug-13 7:17 
Strongname signing - is for authentication.
Obfuscation - is for encryption.

You, yourself, can authenticate an assembly you are about to load. You need the public key of the assembly supplier, the assembly public key and hash (both stored in the assembly). Now calculate the hash of the assembly using its bytes. If the public key of the assembly matches the public key you know belongs to the supplier, and the hash of the assembly matches the hash you calculated with the public key of the assembly, the assembly can be assumed to be original.

Microsoft .Net performs strong name checking when loading, but it doesn't know whether the assembly's embedded public key is the right public key. That is for you to check.

The same goes for signed executables (VeriSign, etc.) - these all rely on the user being able to tell whether the public key in the executable is the right public key.

Btw. The authentication check only makes sense if all the assemblies to load are checked. Otherwise, a dependent assembly could be tampered with. That is why an assembly should not be strong name signed, if it is dependent on unsigned assemblies.


Hope it makes sense.


Kind Regards,

Keld Ølykke
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
devvvy29-Aug-13 19:37
devvvy29-Aug-13 19:37 
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
Matty2229-Aug-13 21:32
Matty2229-Aug-13 21:32 
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
Keld Ølykke30-Aug-13 0:27
Keld Ølykke30-Aug-13 0:27 
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
Matty2230-Aug-13 3:12
Matty2230-Aug-13 3:12 
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
Keld Ølykke30-Aug-13 5:09
Keld Ølykke30-Aug-13 5:09 
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
Keld Ølykke29-Aug-13 23:59
Keld Ølykke29-Aug-13 23:59 
GeneralRe: Strongname vs Obfuscation - resistant to tampering? Pin
devvvy31-Aug-13 20:38
devvvy31-Aug-13 20:38 
GeneralOpen source project with good coverage Pin
Skynet8726-Aug-13 9:45
Skynet8726-Aug-13 9:45 
GeneralRe: Open source project with good coverage Pin
Boipelo26-Aug-13 10:51
Boipelo26-Aug-13 10:51 
GeneralRe: Open source project with good coverage Pin
Skynet8726-Aug-13 10:53
Skynet8726-Aug-13 10:53 
GeneralRe: Open source project with good coverage Pin
Boipelo26-Aug-13 11:13
Boipelo26-Aug-13 11:13 
GeneralRe: Open source project with good coverage Pin
Bernhard Hiller26-Aug-13 20:57
Bernhard Hiller26-Aug-13 20:57 
AnswerRe: Open source project with good coverage Pin
Ingo27-Aug-13 0:37
Ingo27-Aug-13 0:37 
QuestionData backup in Windows Forms Application Pin
Thota Nani26-Aug-13 7:55
Thota Nani26-Aug-13 7:55 
AnswerRe: Data backup in Windows Forms Application Pin
Abhinav S26-Aug-13 8:04
Abhinav S26-Aug-13 8:04 
GeneralRe: Data backup in Windows Forms Application Pin
Thota Nani26-Aug-13 8:12
Thota Nani26-Aug-13 8:12 
GeneralRe: Data backup in Windows Forms Application Pin
Jason Gleim26-Aug-13 8:37
professionalJason Gleim26-Aug-13 8:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.