Bouncy Castle (Crypto) in the Compact Framework

Today someone asked over on StackOverflow how to compile Bouncy Castle for Compact Framework 3.5.  Since SO has no way to add attachments, I’m parking the solution here.  Basically here are the steps:



  1. Download the latest source (v 1.7 as of this writing)
  2. Download my Visual Studio 2008 solution and project files
  3. Put the csharp.cf.sln in the same location as the existing csharp.sln file
  4. Put the crypto.cf.csproj in the same location as the existing crypto.csproj file
  5. Open the csharp.cf.sln file and build

3 thoughts on “Bouncy Castle (Crypto) in the Compact Framework”

  1. I’d suggest asking over at the Bouncy Castle site for info on usage. I simply solved the problem of how to get it to compile for the CF. I would actually think MD5 and SHA1 are already in the Windows Phone platform and wouldn’t need a third-party solution.

    Like

  2. Hi i need to encrypt a string but i can’t do it. I compile the prject and i have the dll on my project but how i can use it?

    regards

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s