I need to encrypt my C# code used by by ASP.NET pages. So, when I compile to create an DLL file I do need to encrypt my DLL file. Please do help me how to encrypt DLL file...
c# dll encryption
18.2k Views Asked by Karthik Malla At
2
There are 2 best solutions below
Related Questions in DLL
- C++ using std::vector across boundaries
- Linking to a static lib compiled with MSVC
- What are MATLAB DLLS?
- VC++ .net: Functionality from managed DLL is not exported
- DLL being marked as DELETEPENDING
- ASP.NET Web Forms give error while connecting to Oracle 11g
- Air Native Extensions: Released Air App w/Windows Native Extension works fine on develpment PC but not on other computers
- WiX and custom extensions for primary output?
- Using different versions of the same DLL in a project
- visual c++ - missing unrelated DLLs
- Error executing SSIS Package
- C++ Access violation write to 0x00000000 in dll in mql4
- How can I read embedded .resx in different assembly
- Running two versions of same Dll parallel in Asp.Net
- Call class member of c++ DLL from c#
Related Questions in ENCRYPTION
- How to customize the output of the Postgres Pseudo Encrypt function?
- encrypted email with entrust certificate is not opening with MS Outlook
- Encrypting with Crypto Node.js and decrypt with window.crypto in Service-Worker
- How to decrypt identity section in web config?
- An exception of type 'System.Security.Cryptography.CryptographicException': keyset does not exist
- IBM DB2 native encryption applied on live database
- crypto.BadPaddingException: data hash wrong (EKYC-Response)
- searchable row level encryption using java?
- AES 256 and Base64 Encrypted string works on iOS 8 but truncated on iOS 7
- Decrypted string returns "Length of the data to decrypt is invalid"
- Storing Encryption Key in Application
- Decryption password Encrypted using Encryptbypassphrase of SQL Server in Java
- Using HTTPS or encrypt response myself
- Encrypting (large) files in PHP with openSSL
- Writing a code to decrypt message from a text file
Related Questions in CODE-ACCESS-SECURITY
- Why am I having an error trying to locally install cs-script?
- Detect IP address of GitHub commit
- Sandbox AppDomain cross-assembly exception handling
- Duo security: how to pass arguments through post_argument on Duo.init() in two factor authentication
- Hidden variable in closure in .Net
- Create Delegate throws a binding error due to signature or security transparency
- How to lock down a distributed DLL?
- C# Problem Running WPF
- how to manage an asymmetric key inside a key container for an enterprise software?
- c# dll encryption
- GIT support for branch based user authorization - Best Practices or Tools?
- How can I limit access to an assembly?
- Avoiding CA2122 from Code Analysis in VS2012 with SecuritySafeCritical fails
- Claims permission check fails when ClaimsPrincipalPermission is applied to class & method within it
- java: Preventing malicious change or modification on some public functions in java packages
Related Questions in DLLEXPORT
- C# and Delphi code have different behaviour when importing unmanaged dll
- .def file vs. __declspec(dllexport) macro
- GetProcAddress for importing a decorated C++ function into C++
- Build dll for large C project with makefile
- AccessViolationException when calling a C++ function from VB.NET
- How to pass a String to const char * from VB.NET to a DLL programmed in C++
- Why Python ctypes can not FreeLibrary?
- C++ dll loading failed with incorrect format exception when VS is not installed
- Are type definition statements equal?
- VS static libs in shared lib with def file: alternative to dllexport?
- How to export a DLL from Visual Studio 2017 Community Edition C++ Project?
- Is is possible to export functions from a C# DLL like in VS C++?
- How to save VBA code to DLL library?
- Export DLLs classes and functions and import them into Win32 Application
- Use C++ DLL with VB6
Related Questions in CODE-SECURITY
- Limiting code in method to only call members in same class
- Creating custom CodeAccessSecurityAttribute leads to exception on compile
- c# dll encryption
- Does Docker need to be installed ona Windows server that's hosting a GitLab CICD runner?
- Securing PHP code. Need some tips
- Save SQL Server Login savely in code (C#)
- Block decompilation using something more than obfuscation
- Which would be fastest and most secure among FastCGI, ASP.NET MVC and Web forms for Server Applications
- Is it possible to prevent a DLL from being modified?
- clang not stuck at #include "/dev/whatever"
- Could performing a .NET "security check" lead to security errors?
- Verify javascript code at server
- How to lock MATLAB files keeping them executable
- Code secure protection
- Is it impossible to secure .net code (intellectual property)?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
One thing you may be able to do is embed an encrypted .dll into another .dll that is to be decrypted and loaded at runtime.
There are limitations to tis method. You will need to provide the instance a key each time at startup to get things running. There are ways to intercept this. Also, the decrypted .dll will exist in memory, decrypted, once the key has been provided. There are ways to read this.
This method is really only useful to protect code form someone that might steal a hard disk drive. This is not an absolute barrier to anyone in control of the machine that will be running the code.