Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Protect or encrypt program Code in N+


  • Please log in to reply
3 replies to this topic

#1 Novice Alex

Novice Alex

    Advanced Member

  • Members
  • PipPipPip
  • 59 posts

Posted 04 September 2012 - 08:46 AM

Hi Chris, Just like to know what are the ways to encrypt our program code in the N+ to prevent others from decrypt it? I have completed a commercial project and would like to protect the program. Please advise. Regards, Novice Alex

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 04 September 2012 - 03:41 PM

Hi Novice Alex, Let me start with a few tips and let others chime in as well... Since .NET code is a close approximation to C# source, you may want to look at a program like Dotfuscator which will help keep your code from getting decompiled easily. NETMF HEX files are already one step away from standard MSIL DLLs, but in theory they're still MSIL. My second recommendation is to add a security key to your deployment file (using MFDeploy) and using an "RTM" version of NETMF firmware to lock out any debuggers This will help make sure your board uses signed firmware. We use direct flashing and custom boot loaders for commercial projects...but we can search around for some documentation on MFDeploy's signing/encryption methods if needed. Chris

#3 Novice Alex

Novice Alex

    Advanced Member

  • Members
  • PipPipPip
  • 59 posts

Posted 04 September 2012 - 11:48 PM

Hi Novice Alex,

Let me start with a few tips and let others chime in as well...

Since .NET code is a close approximation to C# source, you may want to look at a program like Dotfuscator which will help keep your code from getting decompiled easily. NETMF HEX files are already one step away from standard MSIL DLLs, but in theory they're still MSIL.

My second recommendation is to add a security key to your deployment file (using MFDeploy) and using an "RTM" version of NETMF firmware to lock out any debuggers This will help make sure your board uses signed firmware.

We use direct flashing and custom boot loaders for commercial projects...but we can search around for some documentation on MFDeploy's signing/encryption methods if needed.

Chris


Hi Chris,

Noted. Just like to know that steps for the MFDeploy, is it that I only need to selected the "encrypted" exe and it will deploy to the correct segment of the N+? So far, I only use MFDeploy for the firmware upgrades procedures.

Also for the security key, how and what are the steps on implementing it?

Sorry for my ignorance and thanks for the advice in advance.

Regards,
Novice Alex

#4 johnstaveley

johnstaveley

    Member

  • Members
  • PipPip
  • 15 posts
  • LocationLeeds, UK

Posted 04 December 2012 - 06:30 AM

Hello Chris, do you have any more information on securing the netduino such that the program can never be extracted or viewed and is effectively sealed for modification. You hint this is possible above without saying it so it would be nice to have this at least confirmed. I would like to use the Netduino for a commercial project. thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.