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 

How to add DLLs

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



Joined: 03 Jul 2013
Posts: 21

PostPosted: Mon May 21, 2018 5:17 pm    Post subject: How to add DLLs Reply with quote

We have been encrypting only the main exe of a project and this works great. Can you give step by step instructions for adding additional project DLLs to encryption as well?
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4870

PostPosted: Tue May 22, 2018 11:10 am    Post subject: Reply with quote

You encrypt additional DLLs in exactly the same way as for the main exe using a prebuild event to call NetEncryptor. You then add the encrypted assembly to your project as an embedded resource as described in the Help under the section "Adding your own Assemblies".

That's all you need to do. .NET Encryptor handles attempts to load new assemblies and will automatically looking in the applications resources for the corresponding encrypted assembly and unpack and load it on demand.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
PaulS



Joined: 03 Jul 2013
Posts: 21

PostPosted: Sat May 26, 2018 9:07 pm    Post subject: Reply with quote

What about the case where the main exe is not encrypted but you want to use an encrypted dll?
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4870

PostPosted: Mon May 28, 2018 7:48 am    Post subject: Reply with quote

If for some reason your main assembly can't be encrypted then you can use the LoadAssemblyFromFile to load DLL assemblies and then execute methods using reflection. See http://www.infralution.com/phpBB2/viewtopic.php?t=2591
_________________
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