Skip to content

Instantly share code, notes, and snippets.

@tjlytle
Created August 3, 2012 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjlytle/3244355 to your computer and use it in GitHub Desktop.
Save tjlytle/3244355 to your computer and use it in GitHub Desktop.
#DevFriday: King of Code [Aug '12]

The game starts at 3:30PM - if you stumble across this before, good for you, just don't write code until it starts - and entries will be accepted via tweets with the #devfriday hashtag until the next Developer Friday. In the case that no entries are made before then, Mark will win by default. To participate you need to have been to at least one Developer Friday.

Goal: Webservice to encrypt/decrypt data using the Four-square cipher. Any character not matching [a-pr-z] should be removed. For example quick test should be treated as uicktest.

Rules: You're on the honor system here - but it goes without saying that while any resources (online and otherwise) are fair game, simply finding code for the algorithm and successfully executing a copy/paste isn't really playing the game.

Winning: Entries will be evaluated on:

  • Working Code
  • Time to Completion
  • Uniqueness of Design

Code Specs

Webservice should respond with encoded text when a HTTP request is made using this format:

[POST] /[firstkeyword]/[secondkeyword]?text=helloworld

And respond with decoded text when a request is made using:

[GET]  /[firstkeyword]/[secondkeyword]?text=FYHGHZHSJE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment