Click here to Skip to main content
15,905,785 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to paste outside of my application Pin
Bernhard Hiller27-Aug-13 20:38
Bernhard Hiller27-Aug-13 20:38 
GeneralRe: How to paste outside of my application Pin
Mahmoud EL-Shazly28-Aug-13 0:42
Mahmoud EL-Shazly28-Aug-13 0:42 
GeneralRe: How to paste outside of my application Pin
DaveyM6928-Aug-13 1:35
professionalDaveyM6928-Aug-13 1:35 
GeneralRe: How to paste outside of my application Pin
Mahmoud EL-Shazly1-Oct-13 20:01
Mahmoud EL-Shazly1-Oct-13 20:01 
AnswerRe: How to paste outside of my application Pin
Bernhard Hiller26-Aug-13 20:52
Bernhard Hiller26-Aug-13 20:52 
AnswerRe: How to paste outside of my application Pin
OriginalGriff27-Aug-13 3:42
mveOriginalGriff27-Aug-13 3:42 
GeneralRe: How to paste outside of my application Pin
Mahmoud EL-Shazly27-Aug-13 14:17
Mahmoud EL-Shazly27-Aug-13 14:17 
QuestionStrongname vs Obfuscation - resistant to tampering? Pin
devvvy26-Aug-13 13:01
devvvy26-Aug-13 13:01 
AnswerRe: Strongname vs Obfuscation - resistant to tampering? Pin
Abhinav S26-Aug-13 19:09
Abhinav S26-Aug-13 19:09 
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 

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.