ArticleslgStudy

computer science

Autocrypt

Autocrypt is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Autocrypt rather than just read about it. In short: Autocrypt is a cryptographic protocol for email clients aiming to simplify key exchange and enabling encryption. Version 1.0 of the Autocrypt specification was released in December 2017.

Key takeaways

  • Autocrypt belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Autocrypt to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Autocrypt from memory before moving on to harder problems.

Reference excerpt

Autocrypt is a cryptographic protocol for email clients aiming to simplify key exchange and enabling encryption. Version 1.0 of the Autocrypt specification was released in December 2017. Version 1.1 was released in January 2019. It is implemented on top of OpenPGP replacing its complex key management by fully automated exchange of cryptographic keys between peers .

Method Autocrypt-capable email clients transparently negotiate encryption capabilities and preferences and exchange keys between users alongside sending regular emails. This is done by including the key material and encryption preferences in the header of each email, which allows encrypting any message to a contact who has previously sent the user email. This information is not signed or verified in any way even if the actual message is encrypted and verified. No support is required from email providers other than preserving and not manipulating the Autocrypt specific header fields. When a message is encrypted to a group of receivers, keys are also automatically sent to all receivers in this group. This ensures that a reply to a message can be encrypted without any further complications or work by the user.

Security model Autocrypt is guided by the idea of opportunistic security from RFC 7435 but implementing something much less secure than a trust on first use (TOFU) model. Encryption of messages between Autocrypt-capable clients can be enabled without further need of user interaction. Traditional OpenPGP applications should display a noticeable warning if keys are not verified either manually or by a web of trust method before use. In contrast, Autocrypt completely resigns on any kind of key verification. Key exchange is during the initial handshake and valid or invalid keys of peers may be replaced anytime later without any user interaction or verification. This makes it very easy to exchange new key(s) if a user loses access to the key but also makes the protocol much more susceptible to man-in-the-middle attacks than clean TOFU. The underlying OpenPGP implementation makes it often possible for the user to perform manual out of band key verification, however by design users are never alerted if Autocrypt changed the keys of peers. Autocrypt tries to maximize the possible opportunities for encryption, but is not aggressive about encrypting messages at all possible opportunities. Instead, encryption is only enabled by default if all communicating parties consent, allowing users to make themselves available for encrypted communication without getting in the way of their established workflows. Man-in-the-middle attacks are not preventable in this security model, which is controversial. Any attacker who can send emails with forged sender-address can cause encryption keys to be replaced by keys of his choice and/or deliberately turn off encryption.

Technical details Autocrypt uses the established OpenPGP specification as its underlying data format. With Version 1.1 support for Elliptic Curve Cryptography (ECC) has been introduced and is the standard for new keys, because it provides the same security with shorter keys. For this Curve25519 is used. Messages are encrypted using AES and RSA keys, with a recommended RSA key length of 3072 bits. These mechanisms are chosen for maximum compatibility with existing OpenPGP implementations. There are plans for moving to smaller Elliptic-curve keys when support is more widely available. The Autocrypt header field features a tag=value format common to several mechanisms (for example dkim), where the keydata tag contains the public key. It is similar to an armored key export, except that it misses the -----BEGIN PGP PUBLIC KEY BLOCK----- and -----END PGP PUBLIC KEY BLOCK----- lines. For example:

Support Kontact since version 21.04. Delta Chat messenger from Version 0.9.2. K-9 Mail Android mail-app has support since Version 5.400 (reportedly broken until version 5.717). SnappyMail webmail from Version 2.34.0. Thunderbird partially supports AutoCrypt since version 78. Thunderbird generates, sends and receives AutoCrypt headers, but does not automatically install received public keys. User action is still required to approve and install a sender's public key. The German email provider Posteo supports AutoCrypt, and improves its security by also cryptographically signing outbound Autocrypt header data via DKIM. No longer functional: Autocrypt extension in Thunderbird. No longer functional: Thunderbird extension Enigmail since version 2.0.

Further reading Autocrypt - in: Bertram, Linda A. / Dooble, Gunther van / et al. (Eds.): Nomenclatura: Encyclopedia of modern Cryptography and Internet Security - From AutoCrypt and Exponential Encryption to Zero-Knowledge-Proof Keys, 2019, ISBN 9783746066684. OpenPGP Transformation of Cryptography: Fundamental concepts of Encryption The New Era Of Exponential Encryption: - Beyond Cryptographic Routing

External links Autocrypt Website Autocrypt 1.0 Specification Autocrypt mailing list Autocrypt github repo Bundesmann, Jan (18 April 2018), "Autocrypt automatisiert E-Mail-Kryptografie", Heise Select (in German), vol. 2018, no. 5, pp. 64–66, retrieved 24 April 2018 iX. "Einfache Mail-Verschlüsselung: PGP-Helfer Autocrypt in Version 1.0 vorgestellt" (in German). Retrieved 24 April 2018.

References

Worked examples

Example 1 — a first encounter with Autocrypt

Start with the simplest possible case. Write down what Autocrypt claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Autocrypt before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Autocrypt ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Autocrypt

In research
Autocrypt appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Autocrypt in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Autocrypt is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cryptographic software, Security, so understanding it makes those chapters shorter.
In everyday life
Look for Autocrypt outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Autocrypt” →

How to study Autocrypt in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Autocrypt means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Autocrypt out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Autocrypt in simple terms?

Autocrypt is a cryptographic protocol for email clients aiming to simplify key exchange and enabling encryption. Version 1.0 of the Autocrypt specification was released in December 2017.

Why does Autocrypt matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Autocrypt?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Autocrypt.

Tags

  • Cryptographic software
  • Security

Keep exploring