Protecting locally stored data is a crucial aspect of any secure messaging app, particularly when server-side storage is intentionally avoided, as is the case with Threema. On Android, the Keystore offers a system-level solution for securely managing cryptographic keys.