Realized I had gotten slightly off-track with the work I'd done over the past few days. The focus was being put on potentially helping break a simply substitution cipher, rather than encoding and decoding it via a user key. Getting back on track with that.