locked
Need little help for .snk RRS feed

  • Question

  • User-1166428634 posted

    Hi all,

    When we create .snk file (right click on project->properties->Signing Tab) It asks 2 options Strong Name Key and password. I don't understand how to use password. Everything is working fine. But How to use password here? Please somebody let me give me an example

    Thanks

    Tuesday, July 14, 2015 8:14 PM

Answers

  • User2024324573 posted

    See the purpose of creating .snk file from MSDN.com

    To sign an assembly with a strong name, you must have a public/private key pair. This public and private cryptographic key pair is used during compilation to create a strong-named assembly. You can create a key pair using the Strong Name tool (Sn.exe). Key pair files usually have an .snk extension.

    and the purpose of it you read about a lot, but this one might be helpful: http://stackoverflow.com/questions/131181/what-is-a-snk-for

    Also the purpose of creating it has been clearly explained here in details: https://social.msdn.microsoft.com/Forums/en-US/1306d7da-2ab9-4f3d-8b37-ea25ddc9fe6f/use-of-snk-file?forum=architecturegeneral

    You don't need to use the password, but it ensures that your assembly in encrypted and to decrypt some one needs to use decrypt algorithm to uncover it - that is not easy as your password has been decoded with HASH and the intruders/hackers will not be able to alter your binary if they wish to do so.

    BTW, you need to password for decrypting if you need to do so. 

    Hope this will help.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 14, 2015 9:19 PM
  • User2024324573 posted

    No, the password will be saved along with the .snk file and you will be able to change it later.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 14, 2015 9:37 PM

All replies

  • User2024324573 posted

    You can create a new password as your choice, if there is password policy you will be prompted accordingly (afraid it is not!) and when your two passwords will match the .snk file will be created.

    and the .snk file created as shown below:

    Hope this will help.

    Tuesday, July 14, 2015 8:23 PM
  • User-1166428634 posted

    Yes I did that.. But I don't understand the USE of password here.. Where it will ask us to enter a password?

    Tuesday, July 14, 2015 9:07 PM
  • User2024324573 posted

    See the purpose of creating .snk file from MSDN.com

    To sign an assembly with a strong name, you must have a public/private key pair. This public and private cryptographic key pair is used during compilation to create a strong-named assembly. You can create a key pair using the Strong Name tool (Sn.exe). Key pair files usually have an .snk extension.

    and the purpose of it you read about a lot, but this one might be helpful: http://stackoverflow.com/questions/131181/what-is-a-snk-for

    Also the purpose of creating it has been clearly explained here in details: https://social.msdn.microsoft.com/Forums/en-US/1306d7da-2ab9-4f3d-8b37-ea25ddc9fe6f/use-of-snk-file?forum=architecturegeneral

    You don't need to use the password, but it ensures that your assembly in encrypted and to decrypt some one needs to use decrypt algorithm to uncover it - that is not easy as your password has been decoded with HASH and the intruders/hackers will not be able to alter your binary if they wish to do so.

    BTW, you need to password for decrypting if you need to do so. 

    Hope this will help.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 14, 2015 9:19 PM
  • User-1166428634 posted

    hmm.. OK i understand. thanks for this. I am using VS2010 and there is no Signature algorithm which you have shown me in Screen Shot :-)

    So if I enter password there, will it ask anywhere?

    Tuesday, July 14, 2015 9:35 PM
  • User2024324573 posted

    No, the password will be saved along with the .snk file and you will be able to change it later.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 14, 2015 9:37 PM
  • User-1166428634 posted

    OK thanks :-)

    Tuesday, July 14, 2015 9:39 PM