# Encryption Details (questions/discussion)

**URL:** <https://forum.delta.chat/t/encryption-details-questions-discussion/1349>\
**Category:** Mutual Help\
**Created:** [December 31, 2020, 10:52pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349 "2020-12-31T22:52:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcheck](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tcheck](https://forum.delta.chat/u/tcheck)\
**Post date:** [December 31, 2020, 10:52pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/1 "2020-12-31T22:52:18Z")

</div>

[[Initial List]](https://support.delta.chat/t/encryption-details-questions-discussion/1349/17)  
[[Last Updated Final List]](https://support.delta.chat/t/encryption-details-questions-discussion/1349/31)

I am not a crypto expert but I would say:

It would be much better to have each message individual in size and content.

Example:  
You sent one message out (with option send copy to myself ON),  
Then the same message is sent twice (one encrypted for you and one for the receiver).

A hacker would have then:  
2 Public keys and 2 same messages  
I could imagine knowing this, the hacker has more attack vectors to solve the encryption  
[Imagine a group of 5, means: 5 public keys and 5 same messages]

That said:  
I am pretty sure the security could be improved by making each message individual.

Example:  
random block xxx MESSAGE A random block yyy  
random block zzz MESSAGE A random block xyz

With that the same MESSAGE A stands between two random blocks (differ in size)  
So there a two messages with different content and size (but with the same message A)

With that a hacker has the common problem:  
1 Message and 1 Public key.  
or according to first example:  
2 Public keys and 2 different messages  
To say: The attack vector is now smaller.  
[And even in the case a hacker got the message A somehow (e.g. screen reader), he will  
not get the message as a whole (cause of hidden random blocks) and has still the common problem to find the private key]

What do you think? I think it should be implemented that each message is individual in content and size!

PS.  
It is said already, but fits again somehow here too (security aspect: key change):  
Please let me export also only the provider login&imap credentials + chat contacts.  
So I can easily make a new install with new keys (but with existing credentials and contacts)  
[Currently I can export/import: keys and whole backup but not credentials and contacts alone]

PPS.  
I also liked the idea/post of encrypted storage database (security aspect: hide credentials, keys and conversation against root apps and admins)

---

<div class="post-metadata">

**Author:** ![Hocuri](https://forum.delta.chat/user_avatar/forum.delta.chat/hocuri/32/25_2.png) [@Hocuri](https://forum.delta.chat/u/Hocuri)\
**Post date:** [January 1, 2021, 6:31pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/2 "2021-01-01T18:31:02Z")

</div>

> [@tcheck](#):
>
> Then the same message is sent twice (one encrypted for you and one for the receiver).

No, it’s not. It’s sent only once, but encrypted for both you and the receiver.

> [@tcheck](#):
>
> Please let me export also only the provider login&imap credentials + chat contacts.

In the upcoming version, when you login, if the messages are still on the server, some of your chats and all of your contacts will be restored.

---

<div class="post-metadata">

**Author:** ![tcheck](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tcheck](https://forum.delta.chat/u/tcheck)\
**Post date:** [January 2, 2021, 11:41am UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/3 "2021-01-02T11:41:08Z")

</div>

> [@Hocuri](#):
>
> No, it’s not. It’s sent only once, but encrypted for both you and the receiver.

I am pretty sure that this is not correct. It is needed if you use multiple installs synchron. Therefore it is sent out for every receiver. Have you looked into your imap folder?  
Forget maybe the “Sent to yourself” message (by the way: that option alone says it is sent out)  
as the question is:  
If I sent out a same message A at the same time to different receivers (group). Than sending it out with different size and content (but containing same message A) should be safer against attacks.

> [@Hocuri](#):
>
> In the upcoming version, when you login, if the messages are still on the server, some of your chats and all of your contacts will be restored.

That is also not the question here: Cause of intentional key-change.  
Therefore still a request: Have an option to export/import (backup) credentials and contacts alone.

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [January 2, 2021, 4:36pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/4 "2021-01-02T16:36:25Z")

</div>

> [@tcheck](#):
>
> I am pretty sure that this is not correct.

It is correct, the message is sent to your SMTP server once (message + list of recipients via `TO`, `CC`, `BCC` headers).  
When you have sent to self (aka. the `bcc_self`-config option) activated, Your address is added via an Blind copy `BCC` header.  
**why this way?** to safe traffic. People expect a mobile messenger to don’t use up their data plan, unlimited data plans are not common in most countries yet.

But for further encryption details I’m the wrong person to ask as I didn’t worked on that part of DC yet.  
I can imagine that changing content with adding junk data at a random offset could prevent some attacks, but I don’t know about the implementation costs and whether it makes sense in the bigger picture. Also while staying compatible with the existing specs we use like autocrypt, but as autocrypt gets a second version soon it might be something that be considered to add there? IDK…

---

<div class="post-metadata">

**Author:** ![tcheck](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tcheck](https://forum.delta.chat/u/tcheck)\
**Post date:** [January 2, 2021, 8:13pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/5 "2021-01-02T20:13:47Z")

</div>

> [@Simon](#):
>
> It is correct, the message is sent to your SMTP server once

Ok, this might be how it works from my client to my server! (yet wondering how encryption/decryption is done on the clients then if it is not done for each one’s key separate? One same encrypted message or rather single email for all receivers? Can only mean the encrypted single mail has for each receiver somehow an encrypted part (containing the same message A) ???

But for sure the encrypted single mail is then distributed (not to use sent out) to all the receivers mail servers.

So I would say the question still remains (in both cases: distribution and also one mail parted into encrypted chunks somehow so it can be read/decrypted seperately by the clients)

---

<div class="post-metadata">

**Author:** ![tcheck](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tcheck](https://forum.delta.chat/u/tcheck)\
**Post date:** [January 4, 2021, 8:34pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/6 "2021-01-04T20:34:10Z")

</div>

> [@Simon](#):
>
> **why this way?** to safe traffic. People expect a mobile messenger to don’t use up their data plan, unlimited data plans are not common in most countries yet.

I do not agree if you say this safes traffic:

I did only a simple test: writing a same small text message to different amount of users.  
And I can see the file size increase with more users.

Better example: One sends out a 1 MB file to a group of 4 members (plus one to itself)

Cause it is said that it is always a single mail for all which is sent out:  
But this single mail contains (somehow/probably) the file 5 times encrypted so each can decrypt the message. That means the size of the single mail grows to 5 MB for each user to download instead of 1 MB.

To say: The cost is higher with a single mail for all in opposite to if sent out for each individually.  
(The sender has pretty much the same size in both cases, but the receiver has more costs than necessary. Plus dont forget the storage size on the server for each receiver inbox. Especially high-quality videos/audios/images) [Plus even more server load]

And by the way: How is the encrypted single mail decrypted for each? I have only or could see only one single PGP-Block?

> [@Simon](#):
>
> it might be something that be considered to add there?

I guess you have a voice at [autocrypt.org](http://autocrypt.org). You are named there.

What I want say:  
I hope that DeltaChat or rather the developer/company behind it have the intention to provide or stand for the best possible encryption available, or not? That said means e.g. implement specs as it needs to be done but go beyond if possible (clear: without compromise the specs): e.g. suggested hidden random blocks.

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [January 4, 2021, 9:59pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/7 "2021-01-04T21:59:59Z")

</div>

> [@tcheck](#):
>
> How is the encrypted single mail decrypted for each?

as far as I understood it, its symmetric encryption and the key for it is encrypted for everyone separately (maybe adding junk there would be an idea).

> [@tcheck](#):
>
> I guess you have a voice at [autocrypt.org](http://autocrypt.org). You are named there.

Not me personally, but yes our company, [https://merlinux.eu](https://merlinux.eu) takes part in the spec.

> [@tcheck](#):
>
> I hope that DeltaChat or rather the developer/company behind it have the intention to provide or stand for the best possible encryption available, or not?

Depends on who you ask:

- Our Cuban users don’t care for encryption at all, they just want small data usage.
- I assume most users think message delivery is more important than super secure encryption.
- Yes we do care about encryption, but with our small team, it’s not our main nor only objective right now.
- Security and Privacy lovers like us would love to have the best possible encryption

I don’t think such a feature will come anytime soon though, it would need to be in the autocrypt spec and other email clients would need to support it too.

But if you think this is a real issue and you are able to show it in an example (showing that is is easier to crack the key when its multiple times encrypted) we need to prioritize it, I guess, but again, I’m not one of our crypto experts).

The essential question here is if:

```auto
encryption key of message ==
decrypt(key_for_person_A, private_key_of_person_B) ==
decrypt(key_for_person_B, private_key_of_person_B) ==
decrypt(key_for_person_B, private_key_of_person_B) ==
...

```

is really easier/quicker to solve/crack than:

```auto
decrypt(key_for_person_A, private_key_of_person_B) == message_key + random_junk_1;
decrypt(key_for_person_B, private_key_of_person_B) == message_key + random_junk_2;
decrypt(key_for_person_B, private_key_of_person_B) == message_key + random_junk_2;
...
```

---

<div class="post-metadata">

**Author:** ![mbeko](https://forum.delta.chat/user_avatar/forum.delta.chat/mbeko/32/175_2.png) [@mbeko](https://forum.delta.chat/u/mbeko)\
**Post date:** [January 5, 2021, 8:29pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/8 "2021-01-05T20:29:48Z")

</div>

> [@tcheck](#):
>
> I am not a crypto expert but I would say:

It is quite common that laypeople come up with their own ideas and propositions to improve proven encryption algorithms, so the title and this sentence were already a red flag to me 🙂

> [@tcheck](#):
>
> With that a hacker has the common problem:  
> 1 Message and 1 Public key.  
> or according to first example:  
> 2 Public keys and 2 different messages  
> To say: The attack vector is now smaller.

> [@tcheck](#):
>
> I hope that DeltaChat or rather the developer/company behind it have the intention to provide or stand for the best possible encryption available, or not?

Delta Chat uses [state of the art encryption](https://www.openpgp.org) that has been tested and proven by security experts for decades. It is not possible to break it with current technology in reasonable time.

Therefore, even the slightly larger attack vector is of no use for attackers. If there was a way to improve the algorithms, it would be included in the standard. That renders any effort to extend the standard on one’s own useless and potentially less secure. You can find more information under those keywords:

- [Kerckhoffs’s principle](https://en.wikipedia.org/wiki/Kerckhoffs%27s_principle)
- [Open security](https://en.wikipedia.org/wiki/Open_security)

---

<div class="post-metadata">

**Author:** ![tcheck](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tcheck](https://forum.delta.chat/u/tcheck)\
**Post date:** [January 5, 2021, 9:42pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/9 "2021-01-05T21:42:15Z")

</div>

to

> [@Simon](#):
>

First of all. Thanks for your answers.It seems your are responsible somehow for answering in this forum. But I always have written to all, that means to the public and especially to the whole dev-team (to get the answers)  
Yet to say: Your answers have helped me so far. All ok. All is more or less a suggestion or rather a thought which is maybe discussed in your team meetings or not (as with other forum posts).

> [@Simon](#):
>
> Depends on who you ask:

I dont share this view. Going to the main website it offers me an app like WhatsApp and Telegram which are known to be highly secure apps.  
And I also mean its was one if not the only one core-intention of this app by Merlinux GmbH.  
Even if someone dont care about encryption etc. the responsibilty is yet there.  
(An example would be car development/release and the reposibility of the car company)

> [@Simon](#):
>
> The essential question here is if:

Yes, thats the questions. But I am the layperson here (to use mbeko’s words).

> [@mbeko](#):
>
> …so the title and this sentence were already a red flag to me  
> …Delta Chat uses [state of the art encryption](https://www.openpgp.org/)

I have come close to this here: [DC standards](https://github.com/deltachat/deltachat-core-rust/blob/master/standards.md)

Ok, this is a valid meaning. But the thinking behind is simply spoken similiar to: Distribute the same general-house-key to 5 people is less secure than distribute 5 individual keys. Saying this needs no one to be a crypto-expert. Could be that some poeple distribute their general key. I do not.  
Also, why not take laypersons serious and create trust in this SW. E.g. creating a missing entry in the **FAQ** which tells “simply” how the encryption is done in words understandable for simple users and how one can simply verify it. Other words: Giving users simple inside views of how it works would surely improve the reputation of the SW (and I would not have written this post)

For example missing the answers:

**Question** What ciphers (e.g. methods, bit-lengths) are used by DC:

- for the assymetric key encrytion and
- for the symetric content enryption

( e.g the latest I heard a while ago was:

- assymetric key at least 4096 bit length, elliptic curves
- symmetric key at least 256 bit length, double encryption AES-SHA-512

)

[  
or this one:

```
  Why you see only one PGP-Block? 
  (As a PGP Block relates in my opinion to exact one private key)

```

or maybe the example

```
encryption key of message ==
decrypt(key_for_person_A, private_key_of_person_B) ==

```

I myself would have written it like

```
encryption key of message ==
decrypt(enrypted_key_of_msg_for_person_A, private_key_of_person_A) ==
decrypt(enrypted_key_of_msg_for_person_B, private_key_of_person_B) ==
decrypt(enrypted_key_of_msg_for_person_C, private_key_of_person_C)

```

]

But ok, I agree for more I should study the spec from [autocrypt.org](http://autocrypt.org).

Yet, maybe someone can answer me (or rather an always actual FAQ entry) the cipher methods and bit-lengths used in DC (and why there is a single PGP-block instead of a single symetric-encryption-block and why is the symetric key exchanged every time at all as their is only one initial handshake (or is there a hidden handshake and the symetric key changes every message))?

---

<div class="post-metadata">

**Author:** ![mbeko](https://forum.delta.chat/user_avatar/forum.delta.chat/mbeko/32/175_2.png) [@mbeko](https://forum.delta.chat/u/mbeko)\
**Post date:** [January 6, 2021, 5:52am UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/10 "2021-01-06T05:52:57Z")

</div>

> [@tcheck](#):
>
> Distribute the same general-house-key to 5 people is less secure than distribute 5 individual keys. Saying this needs no one to be a crypto-expert.

The analogy with the same general house key is not correct, neither is it to speak about key distribution here. It’s also not less secure as I explained previously.

Do you see the paradox of you claiming one doesn’t need to be an expert while not being one yourself? 😉

> [@tcheck](#):
>
> Also, why not take laypersons serious and create trust in this SW.

I don’t understand why you’re implying that this is not the case. You said you’re a layperson regarding cryptology and you’ve received serious replies to your suggestion. In those, you’ve been explained that the software can be trusted because it’s open source and uses standard algorithms proven to be unbreakable.

> [@tcheck](#):
>
> **FAQ** which tells “simply” how the encryption is done in words understandable for simple users and how one can simply verify it.

There is quite an extensive FAQ section on encryption and especially, there is an [answer referring to the used standards](https://delta.chat/en/help#which-standards-are-used-for-end-to-end-encryption).

From there, you can read up on the involved technologies, e.g. Wikipedia usually provides generally understandable explanations.

Keep in mind, though, that encryption is anything else but simple and you can’t “simply” verify the security. You have to become an expert and conduct a time-consuming analysis. The simple solution is to trust the experts.

If you’re interested in the background of cryptology explained in an approachable way, I recommend the books by Simon Singh and David Kahn.

> [@tcheck](#):
>
> For example missing the answers:

The ciphers and their parameters can change, so it’s not reasonable to duplicate the information in the Delta Chat FAQ and risk that it becomes outdated and misleading. Also, the “F” stands for “frequently” and it may well be that your questions don’t come up frequently enough.

As you said, it’s best to read up the details in the linked specifications. Then you can look at the message headers or the source code if needed. I would have to look it up myself to answer you.

You can find more information about the use of symmetric and asymmetric encryption in the [Wikipedia page about PGP](https://en.wikipedia.org/wiki/Pretty_Good_Privacy#Confidentiality).

---

<div class="post-metadata">

**Author:** ![tcheck](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tcheck](https://forum.delta.chat/u/tcheck)\
**Post date:** [January 6, 2021, 10:31pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/11 "2021-01-06T22:31:50Z")

</div>

to

> [@mbeko](#):
>

I dont know if you are a crypto expert or not but I have this reply:

I can agree with the topic header as it is maybe not correct to suggest improvements in that area if not an expert. It was originally “Encryption Safety” alone (but has been changed). I would like to change it to “Encryption Details discussion” if I could.

But I totally do not agree with all your other views.  
Let me tell why (my point of view):

Do you know what DC has implemented?  
A spec and an implementation are two seperated things. You can implement a spec fully or partly or go beyond. E.g WhatsApp (I would say they go beyond):

```
 Privacy and Security is in our DNA

```

I dont know what your target is, but your answers have more or less not solved any questions I have. Instead you are saying that I am wrong (might be). I would have appreciated you write then how it is if you know how DC is doing it. That would be a better help.

For sure you will not want me in your crypto-team. This is the right decision.  
But for sure I will not buy your crypto-SW. Why?  
Cause you will leave your customer alone by saying: Here read this and that than you know it. Sorry (even if you do read it as user you might not know what DC has done concrete as already said).

You can compare the situation with the following:  
A seller need not to know all the technical details but should have a technical overview and  
know about the features and how it works in general.  
And the user is happy with the seller and the product as he gets the info he needs.

In my case: I feel responsible as taking this app to friends, So I am somehow in the situation of the seller. But I am also a user. And I would appreciate if DC shows also reponsibility.

Or does anyone buy a car without comparing features with other cars?  
Getting no info or help means : ok, than this car is it not. Red flag to use your words.

E.g again WhatsApp. There are lot of technical reviews and articles about the security. So the information is available. Even the side itself provides a small white paper saying it uses

```
   Message Key – An 80-byte value that is used to encrypt message
   contents. 32 bytes are used for an AES-256 key, 32 bytes for a  
   HMAC-SHA256 key, and 16 bytes for an IV.

```

(ok, isnt easy to read too, but is one of the answers I wanted (and still want) to know from DC (not the mention the random IV part (init-vector I believe))

And again: I do user feedback.  
The examples I have given are only a big picture for discussion to everyone (I am sure everyone could imagine what is meant, even if the analogy might not totally fit. So I see no paradoxon). Clearly, only experts can give answers or can take it further and might think about or lol.

To say: Making things comparable gives trust. That is the intention.  
I “know” about e.g. pEp, Tutanota, Matrix, Signal etc.  
But I have to decide between UI (user interface), UX (user experience) but also especially  
take care for privacy and security and what infos are available for non-experts.

So these are still my questions:  
Hopefully someone can answer me (or rather an always actual FAQ entry) the cipher methods and bit-lengths used in DC (and why there is a single PGP-block (as it relates to exact one private key as far I understand) instead of a single symetric-encrypted-message-block and why is the symetric key exchanged every time at all as their is only one initial handshake (or is there a hidden handshake and the symetric key changes every message))?

Also nice would be what is correct?  
Given example

```auto
encryption key of message ==
decrypt(key_for_person_A, private_key_of_person_B) ==

```

I myself would have written it like

```auto
encryption key of message ==
decrypt(enrypted_key_of_msg_for_person_A, private_key_of_person_A) ==

```

---

<div class="post-metadata">

**Author:** ![mbeko](https://forum.delta.chat/user_avatar/forum.delta.chat/mbeko/32/175_2.png) [@mbeko](https://forum.delta.chat/u/mbeko)\
**Post date:** [January 7, 2021, 6:45am UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/12 "2021-01-07T06:45:58Z")

</div>

My explanations don’t seem to get through to you and I find your language and repeated editing confusing, so this is my final effort to clear things up.

Delta Chat is a free/libre and open source application. This means you can look up the implementation and build the app yourself. This also means that none of us is a “customer” in the sense that you use in your examples.

WhatsApp is a proprietary, closed source application. You can’t easily verify that it implements what the company or anybody else claims. You enter an agreement with the company when you use their app and their servers, making you their customer.

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [January 7, 2021, 3:26pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/13 "2021-01-07T15:26:35Z")

</div>

> [@tcheck](#):
>
> It was originally “Encryption Safety” alone (but has been changed).

I changed it in order to avoid confusion. Not sure if “Encryption Details discussion” would be a better title.

> [@tcheck](#):
>
> I would have appreciated you write then how it is if you know how DC is doing it. That would be a better help.

You can read the source code then you know exactly how it is done:

- [GitHub - chatmail/core: Chatmail Rust Core library, used by Android/iOS/desktop chatmail apps, bindings and bots 📧](https://github.com/deltachat/deltachat-core-rust)
- [GitHub - rpgp/rpgp: OpenPGP implemented in pure Rust, permissively licensed](https://github.com/rpgp/rpgp) ← the OpenPGP implementation we use

> [@tcheck](#):
>
> Also nice would be what is correct?  
> Given example
> 
> ```auto
> encryption key of message ==
> decrypt(key_for_person_A, private_key_of_person_B) ==
> 
> ```
> 
> I myself would have written it like
> 
> ```auto
> encryption key of message ==
> decrypt(enrypted_key_of_msg_for_person_A, private_key_of_person_A) ==
> 
> ```

Yes I meant that.

## Conclusion

I get that you’d like more information in the FAQ: Y**ou should open an issue on [GitHub - deltachat/deltachat-pages: Delta Chat Website](https://github.com/deltachat/deltachat-pages) listing all the specs/points that you want to have added to the FAQ about the encryption.**  
That is valuable feedback, but please leave the “I’m entitled to immediate answers” - tone out of your posts. You don’t pay anyone of us for DeltaChat support, do you? Let’s keep this discussion/conversation cool and civil.

---

<div class="post-metadata">

**Author:** ![tcheck](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tcheck](https://forum.delta.chat/u/tcheck)\
**Post date:** [January 7, 2021, 11:20pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/14 "2021-01-07T23:20:09Z")

</div>

As conclusion is written I rather dont like to add any more !!

But to my self-defense I have to write some words, but I will hold it short:

First of all:  
I **never** have claimed to be right. I accept free speech and other meanings. I have used or often use the small words “would”, “at least for me”, “in my opinion”, “maybe”, “my point of view”. So everyone is free to share it or not. I stated it as user feedback. I would say this was and is civil.

I **never** claimed to be entitled for immediate answers or that I am a customer or a sponsor:  
Please tell where than I change it if it still possible or change it with the use of admininstrator rights.  
To say I have written in **all cases “For example (e.g)”**. And the examples are used to explain/make the idea/thinking clearer to everyone (hopefully).  
Maybe name it showcase or analogy or comparison data.  
At least for me examples are useful to get the idea.  
Is that not clear: How can I be a customer if its not sold.  
Is that not clear: How can you be responsible for something if its free.  
That does not mean that you cannot feel responsibility. I do feel it to everyone I suggest this app. E.g. that the password is stored in cleartext and to take care about the install path/location (desktop-version) so no admin can see your password as there is a missing session-login.

Editing posts:  
I never changed already posted thoughts.  
Yes, I do spelling, quotes, line-breaks and add new thoughts  
(if I think it is worth to add or as time passes or have been interrupted but want a quick reply)  
But I do this **only as long there is no** reply.  
In my opinion it is more readable to have one post than have “thousand” posts.

And the question I placed to no one specific. If no one knows it than is that so.  
(Though asking me if naming the used cipher methods is such a big question)  
I clearly stated me as user and non-crypto-expert.  
For me this is a real paradoxon to link me to specs and source-code to fnd it out myself.  
And as already stated: specs and implementations are two sides of a medal.  
I dont want comment: code it yourself

**Conclusion** : I use all the infos I can get to understand, compare, get a feeling and decide what app I want use. For the bigger player it is easier to find out as there are a lot of technical reviews (from experts to the user). E.g. If I would be alone (God thanks this is not the case) maybe I would take Tutanota as my first choice for privacy/security (but has also flaws, e.g. no chat interface, everyone needs to register, ease-if-use and so on)

To say so far I feel great (even with this topic) with DeltaChat and I dont want forget to say:  
**Thanks for this app and your great work** (this goes also to Autorcrypt).

---

<div class="post-metadata">

**Author:** ![tcheck](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tcheck](https://forum.delta.chat/u/tcheck)\
**Post date:** [January 25, 2021, 12:52pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/15 "2021-01-25T12:52:09Z")

</div>

I forgot: I want to say thanks also for the work behind of all the 3rd party open source tools which are used in DC.

PS. on my own behalf:  
I have written Telegram or WhatsApp are known to be highly secure apps.  
But I should have better written: are said to be highly secure.  
I will not take the burden to make such a judgement. I am not an expert.  
And it was only taken as reference to explain my point of view,  
as there a lot of other pure messengers around,  
which for sure, all in all, includes also: **DeltaChat**

**-----------------------------------------------------------------------------------------------------------------------------------------**

---

<div class="post-metadata">

**Author:** ![tcheck](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tcheck](https://forum.delta.chat/u/tcheck)\
**Post date:** [January 26, 2021, 9:14am UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/16 "2021-01-26T09:14:33Z")

</div>

> [@Simon](#):
>
> ## Conclusion
> 
> I get that you’d like more information in the FAQ: Y**ou should open an issue on [GitHub - deltachat/deltachat-pages: Delta Chat Website](https://github.com/deltachat/deltachat-pages) listing all the specs/points that you want to have added to the FAQ about the encryption.**

The answer to this is, at least for me, clearly:  
Threema Messenger [Readable and understandable. See Link on Top, Tab Security and Crypthographic Whitepaper.]  
OR  
Wire (Personal) Messenger, as its also multi-platform like DC  
OR

> **[Secure Messaging Apps Comparison | Privacy Matters](https://www.securemessagingapps.com/)**
>
> This site compares secure messaging apps from a security & privacy point of view. These include Facebook Messenger, iMessage, Skype, Signal, Google Allo, Threema, Riot, Wire, Telegram, and Wickr. The best secure messaging app?

Maybe you add you into this list.  
OR  
in this list DeltChat is **already included** :  
[https://media.kuketz.de/blog/messenger-matrix/messenger-matrix-en.html](https://media.kuketz.de/blog/messenger-matrix/messenger-matrix-en.html)  
Maybe you add a link to this site on your website.

[  
E.g Crpythographic Whitepaper  
you see: key lengths, random numbers, padding message, db encryption]

One point I want take out as it was the starting point of this discussion:

> Padding  
> In order to thwart attempts to guess the content of short messages by looking at the amount of data,

]

But I know email-infrastructure is different to a specific messaging infrastructure, and it is nearly impossible to do the same or difficult to compare.

---

<div class="post-metadata">

**Author:** ![tcheck](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tcheck](https://forum.delta.chat/u/tcheck)\
**Post date:** [January 28, 2021, 11:58am UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/17 "2021-01-28T11:58:50Z")

</div>

Feeling responsible regarding security for myself but especially to users I suggested your app. Therefore I have this list I would like to see in a so called “security” update (hopefully):.

**1.** at least an encrypted email account password it not whole db (especially on desktop version)  
2. default connection method set to “SSL/TLS” instead of “Automatic”  
3. missing connection option Authentication method “Encrypted password” (see maybe thunderbird connect options for other methods)  
4. choosable install path (desktop version)  
5. give password stars shown a fix length regardless of the real length of password  
6. profile name “My name” with hint text: “(if set this is transferred in the headers too)”  
7. an “Emtpy”-button to empty DeltaChat folder on the server manually (without any logic,  
only and only for an existing DeltaChat folder, if it does not exists nothing happens)  
8. padding (short) messages with random data  
**9**. Make veryfied contact more visible (see that post)

This is to protect me and maybe others to occassionally or accidentally leak secret informations.

This single post need no answers. Each point which is erased or not implemented would make me feel a bit lesser comfortable regarding security (of the otherwise great app).  
But sure anyone can continue with adding points to the list or other questions/discussion regarding encryption/security/privacy.

---

<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:** [February 4, 2021, 2:15am UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/18 "2021-02-04T02:15:03Z")

</div>

> 1. at least an encrypted email account password it not whole db (especially on desktop version)

Isn’t disk encryption sufficient for most use cases? There are plans to implement secure backup transfer, but it will likely be implemented using transport security first.

> 1. default connection method set to “SSL/TLS” instead of “Automatic”

Automatic means automatic choose between standard STARTTLS mechanism and non-standard SSL/TLS. Both are equally secure. Delta Chat never resorts to Plain automatically. Setting default to SSL/TLS will only result in Delta Chat failing to autoconfigure servers which only offer STARTTLS.

> 1. missing connection option Authentication method “Encrypted password” (see maybe thunderbird connect options for other methods)

“Encrypted password” can mean different things, but usually it refers to legacy methods such as CRAM-MD5 developed before use of TLS became widespread, which require server to store plaintext password. Sending plaintext password over TLS is more secure than these schemes as in this case the server can store only the hashed password and your password cannot be extracted directly from the server database. This is why developers don’t have motivation to implement these mechanisms: [Support for SASL authentication with encrypted password · Issue #38 · async-email/async-imap · GitHub](https://github.com/async-email/async-imap/issues/38)  
See [authentication - Security of email (SMTP/POP) passwords - Information Security Stack Exchange](https://security.stackexchange.com/questions/198653/security-of-email-smtp-pop-passwords) for more.

> 1. choosable install path (desktop version)

For Windows there is an experimental portable version on [https://get.delta.chat/](https://get.delta.chat/)

> 1. an “Emtpy”-button to empty DeltaChat folder on the server manually (without any logic,  
> only and only for an existing DeltaChat folder, if it does not exists nothing happens)

There is an option for automatic deletion of messages on the server, you can set it to “at once”. It only deletes messages known to the Delta Chat instance, though.

> 1. padding (short) messages with random data

Encryption of the same plaintext twice already results in different ciphertexts, because OpenPGP generates a new symmetric AES key each time, which is in turn encrypted with public keys of recipients. The message itself is then encrypted with AES key, which is unique for each sent message.

---

<div class="post-metadata">

**Author:** ![tcheck](https://forum.delta.chat/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tcheck](https://forum.delta.chat/u/tcheck)\
**Post date:** [February 4, 2021, 9:30am UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/19 "2021-02-04T09:30:05Z")

</div>

> [@link2xt](#):
>
> > 1. at least an encrypted email account password it not whole db (especially on desktop version)
> 
> Isn’t disk encryption sufficient for most use cases? There are plans to implement secure backup transfer, but it will likely be implemented using transport security first.
> 
> **Reply:**  
> Yes I agree to a certain level. But in case of normal windows user e.g. Windows Home you  
> cannot expect that this is the case. Or in companies where administrators can easily check your folders. Not to forget: trojans (downloading this db), security check points, etc.  
> That’s the reason for this point.
> 
> **—**
> 
> > 1. default connection method set to “SSL/TLS” instead of “Automatic”
> 
> Automatic means automatic choose between standard STARTTLS mechanism and non-standard SSL/TLS. Both are equally secure. Delta Chat never resorts to Plain automatically. Setting default to SSL/TLS will only result in Delta Chat failing to autoconfigure servers which only offer STARTTLS.
> 
> **Reply:**  
> I do not agree (also I am not a technical expert). But in my opinion the case ist like that:  
> STARTTLS gives the offer to choose between normal connection and a secured connection.  
> If the mail-server does not accept TLS (currently, or for whatever reasons) the conversation is done unencrypted. With a fix set using TLS/SSL only - a connection is aborted if not encrypted. That is by far the safest method and the only connection I want.  
> That’s the reason for this point.
> 
> **—**
> 
> > 1. missing connection option Authentication method “Encrypted password” (see maybe thunderbird connect options for other methods)
> 
> “Encrypted password” can mean different things, but usually it refers to legacy methods such as CRAM-MD5 developed before use of TLS became widespread, which require server to store plaintext password. Sending plaintext password over TLS is more secure than these schemes as in this case the server can store only the hashed password and your password cannot be extracted directly from the server database. This is why developers don’t have motivation to implement these mechanisms: [Support for SASL authentication with encrypted password · Issue #38 · chatmail/async-imap · GitHub](https://github.com/async-email/async-imap/issues/38)  
> See [https://security.stackexchange.com/questions/198653/security-of-email-smtp-pop-passwords](https://security.stackexchange.com/questions/198653/security-of-email-smtp-pop-passwords) for more.
> 
> **Reply:**  
> Could be that way. I am not sure (as I am not a technical expert):  
> I use Thunderbird a very long time. They still provide this methods and I use this method with TLS. So I believe it is not that outdated as you mean.  
> Why: because Encrypted Passowrd, in my opinion, sends the password in a way so it  
> even cannot eavesdropped by the server instance. This is regardless of using TLS or not.  
> Probably this is not that case as I can use DC without this option.  
> Yet still. If someone has set to Automatic and no encryption is used this will protect the password.  
> That’s the reason for this point.
> 
> **—**
> 
> > 1. choosable install path (desktop version)
> 
> For Windows there is an experimental portable version on [https://get.delta.chat/](https://get.delta.chat/)
> 
> **Reply:**  
> I know. But still it is not a fully portable (is not running with all under one directory).  
> I even proposed to use PortableApps for that.
> 
> Beside that.using the normal windows installer which lets me choose the path  
> has the effect that it is registered as for normal apps expected but has the advantage  
> to install onto a secure place and not under a directory I dont expect apps  
> (see also point 1). And I can better talk to users if any problems happened.  
> That’s the reason for this point.
> 
> **—**
> 
> > 1. an “Emtpy”-button to empty DeltaChat folder on the server manually (without any logic,  
> > only and only for an existing DeltaChat folder, if it does not exists nothing happens)
> 
> There is an option for automatic deletion of messages on the server, you can set it to “at once”. It only deletes messages known to the Delta Chat instance, though.
> 
> **Reply:**  
> I know. But I dont want that anyone deletes something on the server with some logic behind.  
> I could remember, if not using the folder “DeltaChat” it starts to delete from the main mailbox.  
> To say: I dont trust here anyone. That is not related to DC. That is general.
> 
> But such a button would be a convenience to easily empty this folder and only this folder without the need to login via website for emptying this folder.  
> That’s the reason for this point.
> 
> **—**
> 
> > 1. padding (short) messages with random data
> 
> Encryption of the same plaintext twice already results in different ciphertexts, because OpenPGP generates a new symmetric AES key each time, which is in turn encrypted with public keys of recipients. The message itself is then encrypted with AES key, which is unique for each sent message.
> 
> **Reply:**  
> I could verify that after checking mails with same content . And it is discussed here already.  
> But I have looked into the Threema Whitepapers. I have cited it already here (see posts above or search “Padding”). That’s why I added it again.  
> That’s the reason for this point.

**—**

And the main reason is: I feel responsible when suggesting this app to even more non-technical users.  
Also on the main website is written “Its like WhatsApp or Telegram”. This could give the expectation to somer users it is automatically secure as these apps more or less claim for itself or at least are well-known (true or false) as one of the most secure messaging apps.  
They could think: “Nothing to care about”. But its not.  
I cannot say: “Look a safe app!”. Its not, if you dont take care. I also dont want say: “DIY”.  
This is also true for point 9: “Make veryfied contact more visible”.

**Conclusion** (at least for me):  
I dont drop any of these points.

---

<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:** [February 4, 2021, 3:24pm UTC](https://forum.delta.chat/t/encryption-details-questions-discussion/1349/20 "2021-02-04T15:24:30Z")

</div>

> [@tcheck](#):
>
> I do not agree (also I am not a technical expert). But in my opinion the case ist like that:  
> STARTTLS gives the offer to choose between normal connection and a secured connection.  
> If the mail-server does not accept TLS (currently, or for whatever reasons) the conversation is done unencrypted. With a fix set using TLS/SSL only - a connection is aborted if not encrypted. That is by far the safest method and the only connection I want.  
> That’s the reason for this point.

When STARTTLS option is selected, Delta Chat connects over plain connection and issues STARTTLS command. If the mail server does not switch to TLS after that, the connection is aborted. There is no fallback to the plaintext, you have to select Plain option explicitly for that.

Relevant source code in the core if you want to double-check:

> <https://github.com/deltachat/deltachat-core-rust/blob/6bb0c164f94fffc4b84940a0fd56d791b6ba7a26/src/imap/mod.rs#L198>

> <https://github.com/deltachat/deltachat-core-rust/blob/6bb0c164f94fffc4b84940a0fd56d791b6ba7a26/src/imap/client.rs#L121>

There is no way plain text connection is used if the option is STARTTLS.

Here you can check the list of combinations tried when Automatic is selected, it’s either TLS or STARTTLS, never plain:

> <https://github.com/deltachat/deltachat-core-rust/blob/6bb0c164f94fffc4b84940a0fd56d791b6ba7a26/src/configure/server_params.rs#L102>

[Next page](https://forum.delta.chat/t/encryption-details-questions-discussion/1349.md?page=2)
