Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6098353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:08:54+00:00 2026-05-23T13:08:54+00:00

I know that it is done by signing assembly with private key. So here

  • 0

I know that it is done by signing assembly with private key.

So here how I see the process …
When we have the private/public key pair file we can build assembly signing it using this keys.
So what in reallity is done is that compiler opens the ‘sk'(or pfx) file and retreives the private key (which I understand is impossible for human) and after signing the assembly with the private key it adds the public key into assembly manifest and that is it I have the strongly named assembly.

So what when I run the application which is referencing that assemly ?
What does CLR to be sure that the assebly is not replaced and nothing was changed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:08:54+00:00Added an answer on May 23, 2026 at 1:08 pm

    A quote from CLR via C#

    Signing an assembly with a private key
    ensures that the holder of the
    corresponding public key produced the
    assembly. When the assembly is
    installed into the GAC, the system
    hashes the contents of the file
    containing the manifest and compares
    the hash value with the RSA digital
    signature value embedded within the PE
    file (after unsigning it with the
    public key). If the values are
    identical, the file’s contents haven’t
    been tampered with, and you know that
    you have the public key that
    corresponds to the publisher’s private
    key. In addition, the system hashes
    the contents of the assembly’s other
    files and compares the hash values
    with the hash values stored in the
    manifest file’s FileDef table. If any
    of the hash values don’t match, at
    least one of the assembly’s files has
    been tampered with, and the assembly
    will fail to install into the GAC.

    Well, here how it works.

    When you compile the assembly noting that you want to sign it with already generated public/private key pair file the compiler computes the hash of the assembly (also computes hashes for each file in the assembly and stores the values along with file names in FileDef table) then it signs the hash value with private key and embeds public key in manifest for that assembly.

    Now in runtime when the application (assembly) tries to load that signed assembly the assembly is again hashed then CLR gets the public key from the assembly manifest and decrypts the RSA sign and compares the hash value with the sign value. If they are the same than nothing was changed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a query that I know can be done using a subselect, but
I know that this can be easily done by using if(i%5 == 0 OR
I've done enough Googling to know that if I have something like class SubObject
I know that in the end it, can't be done. But, what are the
I accidentally press a shorcut key, and I know that vim has done something
Anyone know a PHP scripts that done a good compression for jQuery?
I know we've done this before in another .aspx page that's using this master
I know that I can do something like $int = (int)99; //(int) has a
I know that you can insert multiple rows at once, is there a way
I have a link in one of my views that users can click that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.