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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Check Signing Key

Check Signing Key

Scheduled Pinned Locked Moved C#
questioncryptography
3 Posts 3 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.
  • G Offline
    G Offline
    gnjunge
    wrote on last edited by
    #1

    Hi, I have two assemblies, strong name signed by using the same signing key file. One assembly opens the other assembly using reflection. In order to check whether it is the original assembly (created by me) that I am opening I would like to compare the strong name key of the two applications (which is the main proof that I created the second assembly and not somebody else). How do I do this? Assembly.GetName().GetPublicKey() seems the hash code of the assembly encrypted by de private key, instead of the public key. Thank you, Gidon

    L M 2 Replies Last reply
    0
    • G gnjunge

      Hi, I have two assemblies, strong name signed by using the same signing key file. One assembly opens the other assembly using reflection. In order to check whether it is the original assembly (created by me) that I am opening I would like to compare the strong name key of the two applications (which is the main proof that I created the second assembly and not somebody else). How do I do this? Assembly.GetName().GetPublicKey() seems the hash code of the assembly encrypted by de private key, instead of the public key. Thank you, Gidon

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Maybe on the AppDomain.AssemblyLoad event you can check?

      xacc.ide-0.1.1.11 - now with Settings & AutoComplete(kinda)

      1 Reply Last reply
      0
      • G gnjunge

        Hi, I have two assemblies, strong name signed by using the same signing key file. One assembly opens the other assembly using reflection. In order to check whether it is the original assembly (created by me) that I am opening I would like to compare the strong name key of the two applications (which is the main proof that I created the second assembly and not somebody else). How do I do this? Assembly.GetName().GetPublicKey() seems the hash code of the assembly encrypted by de private key, instead of the public key. Thank you, Gidon

        M Offline
        M Offline
        MrEyes
        wrote on last edited by
        #3

        I may have missed the point here, but an alternative method of handling inter assembly security is to use StrongNameIdentityPermissionAttribute, it isnt perfect but it may suit what you need. http://www.codeproject.com/useritems/SecUtilexe.asp[^]

        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