View previous topic :: View next topic |
Author |
Message |
Nhir
Joined: 11 Apr 2011 Posts: 4
|
Posted: Wed Apr 13, 2011 4:38 pm Post subject: Encryption of unsigned application |
|
|
when i try to encrypt an unsigned application, netEncryptor tell me thah i must specify a token ....
Could someone tell me the detailled procedure to encrypt an unsigned application ? I can't figure it out by myself with the help file. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu Apr 14, 2011 12:57 am Post subject: |
|
|
Is there some reason why you don't want to strong name sign the application? Usually the simplest approach is to create your own strong name and use that to sign both the application and the bootstrapper application.
You can encrypt assemblies that are unsigned or signed using a different strong name to the bootstrapper - but in this case you have to specify the public key token of the strong name that you use to sign the bootstrapper (using the /token option). The bootstrapper MUST always be strong named. The encryption algorithm uses the public key token to ensure that only a bootstrap executable signed with the corresponding strong name can decrypt and load the assembly.
To determine the public key token use the strong name (sn.exe) utility. To get the public key token from a signed assembly (ie the bootstrap assembly) use:
Code: | sn -T <assemblyname> |
_________________ Infralution Support |
|
Back to top |
|
|
|