The Twilio blog has an interesting post that lets you "tap into your inner spy" and shows you how to use their service to build a "digital decoder ring" that decodes text based on a Caesar cipher and revert it back from its encoded state, texting the results back to the user.
If you are like me you've probably always wanted to tap into your inner Sydney Bristow [from Alias] and become a kick-ass CIA spy. Today I'm going to show you how to use PHP, FilePreviews.io and Twilio MMS to come one step closer to that dream. We're going to build an app that lets you snap a picture of a Caesar ciphered text, send it to a phone number and get a response with the decoded text. I
He starts with a list of things you'll need (including accounts on Twilio and FilePreviews.io) and the Twilio PHP SDK. The remainder of the post walks you through the code and pieces you'll need to make it all work:
- Analyzing Our Image
- Receiving Images Via MMS
- Cracking the Code
The end result will send the decoded information back to the caller using the rickyrobinett/CaesarCipher library sent through the Twilio service. You can get the full, working code for the example on Ricky Robinett's GitHub account.