# The handling of PGP keys is not optimal

**URL:** <https://forum.delta.chat/t/the-handling-of-pgp-keys-is-not-optimal/2516>\
**Category:** Uncategorized\
**Created:** [April 9, 2023, 1:49pm UTC](https://forum.delta.chat/t/the-handling-of-pgp-keys-is-not-optimal/2516 "2023-04-09T13:49:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [April 9, 2023, 3:44pm UTC](https://forum.delta.chat/t/the-handling-of-pgp-keys-is-not-optimal/2516/3 "2023-04-09T15:44:47Z")

</div>

[rPGP](https://github.com/rpgp/rpgp) and Delta Chat passed security audits. TypeScript is not used to handle the keys in Delta Chat. On Android there is a dedicated Keystore system, but it is not intended for handling OpenPGP keys, for example it does not support Ed25519 keys that Delta Chat uses. Delta Chat Android has an experimental option to store SQLCipher passphrase in the Keystore, but the OpenPGP key has to be used outside the hardware security module. We don’t attempt to “shred” any files on disk by overwriting it and recommend using full disk encryption which is available on all operating systems Delta Chat supports. `PRAGMA secure_delete=on` is used in SQLCipher though. Not talking about the keys in the UI is a deliberate decision. The keys generated by Delta Chat do not have an expiration date on purpose. Autocrypt standard was deleloped in large part by the same team as Delta Chat itself.

The forum already has a very similar topic:

> [@Security holes : messages not deleted in the database and the server](https://support.delta.chat/t/security-holes-messages-not-deleted-in-the-database-and-the-server/1700):
>
> I’m very disappointed, Delta Chat seems to have been created by people who don’t know anything about security. In 30 minutes of testing I found security holes that should never be there. \*\*1-\*\*When deleting a conversation, the messages still remain on the mail server (test carried out on an Android phone and a Windows desktop). On the two mailboxes ([mailo.com](http://mailo.com) server for both) the messages are not deleted on the server. \*\*2-\*\*When deleting a conversation in Delta Chat Android or Delta Chat Wind…

---

_[View the full topic](https://forum.delta.chat/t/the-handling-of-pgp-keys-is-not-optimal/2516)._
