Keyboard
Type in plain text, send ciphertext
Plain text stays in the keyboard; the ciphertext shows up above the keys, like a translation. Confirm and it is inserted in the open app (messaging, email, notes…). As text, or as an image for symbol ciphers such as the dancing men.