spg Chapter Five

Chapter Five answers
What's with the turning the key character back into a string? It should be possible to decode with the same operations as encoding.