Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. structure of a strong name key file

structure of a strong name key file

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stanimir_Stoyanov
    wrote on last edited by
    #1

    i'm looking for an article showing how a key pair is being generated, so how the public key token is, and eventually about "binary attack" to signed .net assembly (e.g. editing the public key token using hex editor) - for educational purposes only :-D. 10x in advance

    S 2 Replies Last reply
    0
    • S Stanimir_Stoyanov

      i'm looking for an article showing how a key pair is being generated, so how the public key token is, and eventually about "binary attack" to signed .net assembly (e.g. editing the public key token using hex editor) - for educational purposes only :-D. 10x in advance

      S Offline
      S Offline
      Steven Campbell
      wrote on last edited by
      #2

      http://www.codeproject.com/dotnet/PerKeyGen.asp


      my blog

      S 1 Reply Last reply
      0
      • S Steven Campbell

        http://www.codeproject.com/dotnet/PerKeyGen.asp


        my blog

        S Offline
        S Offline
        Stanimir_Stoyanov
        wrote on last edited by
        #3

        thanks, but what about how to manually generate a token for the public key?

        S 1 Reply Last reply
        0
        • S Stanimir_Stoyanov

          thanks, but what about how to manually generate a token for the public key?

          S Offline
          S Offline
          Steven Campbell
          wrote on last edited by
          #4

          Sn.exe computes the token using a hash function from the public key. I don't know what the specific hash function is, but it should be easy to find out through experimentation. Probably either MD5 or SHA1.


          my blog

          1 Reply Last reply
          0
          • S Stanimir_Stoyanov

            i'm looking for an article showing how a key pair is being generated, so how the public key token is, and eventually about "binary attack" to signed .net assembly (e.g. editing the public key token using hex editor) - for educational purposes only :-D. 10x in advance

            S Offline
            S Offline
            Steven Campbell
            wrote on last edited by
            #5

            I've answered your questions because this is for educational purposes, and also because knowing these things does not in fact allow the "attack" of the signed assembly. To verify the assembly's digital signature, the CLR uses the assembly's public key to decrypt the assembly's digital signature, resulting in the original, calculated hash. In addition, the CLR uses the information in the assembly's manifest to dynamically generate a hash. This hash value is then compared with the original hash value. These values must match, or we must assume that someone has tampered with the assembly. - from .NET Framework Essentials, By Hoang Lam, Thuan L. Thai.


            my blog

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups