Skip to content

Solitaire Cipher

8 January 2009

One of the things we do at work is “Lunch and Learn”, a weekly seminar led by one of the development staff. Over the past few months, we’ve been doing the Solitaire Cipher. It was designed as a secure cipher operating with an ordinary deck of playing cards.

It was an interesting programming challenge, and a refreshing one for me. I hope to post some of the pertinent pieces of code soon. (As a parenthetical note, what public code repository solution would my readers suggest?)

I used a hybrid test-driven development, and found that it worked well for my style of coding. I’m beginning to use this thinking at work, where we’re stubbing out interfaces, but using unit tests to explore their behavior.

Another thing these challenges are good for is providing a testbed for new technologies. Since we’re taking a little more time with this one than usual, I’m going to expand my solution and make it a WCF service. I’m also going to implement the standard .NET framework cryptography hooks, including the ICryptoProvider interface and the SymmetricAlgorithm class.

If you’re looking to do something similar at your workplace, or just for a challenge at home, we’re cherry-picking through the Ruby Quiz list.

Advertisements
No comments yet

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

%d bloggers like this: