I’ve been doing a lot of work lately with raw WordPress options (what’s stored in the database), and started getting annoyed at manually unserializing the ones that are serialized to see what’s in them. I was also working with a lot of content that was JSON encoded, so it was all getting a bit tedious. Enter the Secret Decoder Ring!
This is a super-simple (basic, dodgy, hackish), fun little script that allows you to quickly decode “encoded” information in a variety of formats. I have it in my browser toolbar as a bookmark so that I can get at it easily. All you do is copy-paste something into it, and then click the appropriate button to get decoded output. Click the link below and give it a shot.
Secret Decoder Ring
It’s also handy if your WordPress install gets hacked (hi Dreamhost! 🙁 ) and someone adds a bunch of base64_encoded() junk in your files, because now you can quickly and easily decode it and see what it says.