Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Encryption of unsigned application

 
Post new topic   Reply to topic    Infralution Support Forum Index -> .NET Encryptor Support
View previous topic :: View next topic  
Author Message
Nhir



Joined: 11 Apr 2011
Posts: 4

PostPosted: Wed Apr 13, 2011 4:38 pm    Post subject: Encryption of unsigned application Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Apr 14, 2011 12:57 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> .NET Encryptor Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group