Making .NET Assemblies Tamper-resistant
by Richard Grimes

Example 1:
byte[] CreateHash(byte[] data)
{
   HashAlgorithm md5 = MD5.Create();
   return md5.ComputeHash(data);
}


Example 2: 

 .file modone.netmodule
    .hash = (DF 74 55 25 54 F0 1F E9   //.tU%T...
             F1 3C 02 3D 97 0C 85 AE   //.<.=....
             88 82 34 19 )             // ..4.
 .file nometadata strings.txt
    .hash = (B7 36 14 0B D7 1A E9 61   // .6.....a
             72 DE 38 81 5E 0D 66 2F   // r.8.^.f/
             B3 FF 51 2E )             // ..Q.
 .mresource public strings.txt
 {
   .file strings.txt at 0x00000000
 }







1


