The issue might be that you're trying to convert the entire element instead of its inner text. Try replacing `outText = btoa(inText);` with `outText.value = btoa(inText.value);`, and likewise for the other event listener.
spam