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

How to use Key_RSA

encryption RSA security

  • Please log in to reply
5 replies to this topic

#1 tpitman

tpitman

    New Member

  • Members
  • Pip
  • 7 posts

Posted 10 August 2014 - 05:16 AM

I have the original Netduino Plus version 1. I am running the stock 4.1 NETMF on it.

 

I am doing a web server app that I need some security on. I know SSL is not available, so I was thinking I could just use the built in Key_RSA class that comes in 4.1.

 

The problem is I don't know enough about RSA to get from point A to point B in using it. When I do this:

Key_RSA crypto = new Key_RSA(..., ...);

The ... and ... are byte[] values. The first is called Modulus and the second is called Exponent.

 

What are those and where do I find them? I read several web pages about RSA encryption and I understand I need a public / private key pair. I did find a web site that talked about the modulus and exponent, but not how you get them.

 

I found a site that will generate an RSA 1024 bit public / private key pair. They are base 64 strings, but don't say anything about the modulus and exponent parts.

 

So the question I have is where do I get those values to put into the constructor?

 

I guess while I am at it I should also make sure that the Key_RSA stuff is actually implemented on the Netduino Plus 1. is it?



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 10 August 2014 - 06:25 AM

Hi tpitman,

The old crypto libraries aren't incorporated into the firmware for Netduino.

We did build a managed code AES implementation, if you're interested in playing with that.

Welcome to the Netduino community,

Chris

#3 tpitman

tpitman

    New Member

  • Members
  • Pip
  • 7 posts

Posted 12 August 2014 - 03:04 AM

Thank you for the welcome. I look forward to doing more with Netduino.

 

Are you saying that even in 4.1 the RSA stuff is not there?

 

If that is the case, then yes, I would like to use whatever library you have available as long as it will work in the Netduino Plus 1. I don't have the 2.

 

Also, what firmware version do I need?



#4 tpitman

tpitman

    New Member

  • Members
  • Pip
  • 7 posts

Posted 14 August 2014 - 06:39 AM

bump



#5 KiwiDev

KiwiDev

    Advanced Member

  • Members
  • PipPipPip
  • 100 posts
  • LocationNew Zealand

Posted 28 August 2014 - 08:43 AM

Hi

 

Have a look at this post

 

http://forums.netdui...ryption-library

 

https://www.bouncycastle.org/

 

I have used the XTEA implementation on a Netduino, Fez Spider and Windows Azure projects

 

Bryn



#6 tpitman

tpitman

    New Member

  • Members
  • Pip
  • 7 posts

Posted 28 August 2014 - 09:44 PM

Very nice. Thank you!







Also tagged with one or more of these keywords: encryption, RSA, security

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.