WCF Service and Silverlight

Well, I’m venturing out into new technology using WCF and Silverlight 4.0. I learned something today that was quite interesting.

So, my task was to come up with a new web service (now called a WCF Service in 4.0) that can handle encrypting and decrypting strings in a Silverlight application. So, I create a WCF Service (aka Web Service) that would handle the routines on the server side. Then, all I need to do is use the existing class in the Silverlight application right? WRONG! Apparently, Silverlight applications have limited capabilities to namespaces like System.Security.Cryptography and System.Text to just name a few. So, I had to Google to come up with another solution. So instead of using the Rijndael algorithm, I had to use the Rfc2898DeriveBytes algorithm. Worked like a charm!

Anyway, it was a learning day in the world of .NET 4.0 and Silverlight!

This entry was posted in .NET. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>