It would be good to write automated tests for edge cases, such as the app being killed during decryption.