Create 2 textboxes and automatically update the other when you edit one (e.g. edits to decoded cause the encoded version to automatically update).