openpgp-notes/book/source/01-intro.md

65 lines
4.2 KiB
Markdown
Raw Normal View History

<!--
SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
SPDX-License-Identifier: CC-BY-SA-4.0
-->
# Introducing OpenPGP
2023-09-15 16:02:19 +02:00
This documentation project seeks to introduce OpenPGP concepts and functionalities to software developers who wish to use it in their projects.
2023-09-15 16:02:19 +02:00
This document describes [OpenPGP version 6](https://datatracker.ietf.org/doc/draft-ietf-openpgp-crypto-refresh/), with occasional remarks about differences to earlier versions.
2023-09-15 11:14:06 +02:00
2023-09-15 16:02:19 +02:00
This text is *not* intended as a guide for end-users of OpenPGP-related software.
## What is OpenPGP?
OpenPGP is an open standard for cryptographic operations. It is a system based on well-understood cryptographic building blocks. OpenPGP supports the secure delivery of files and messages between a sender and a recipient as well as verification of the sender. OpenPGP is an outgrowth of the ["Pretty Good Privacy (PGP)"](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) encryption program and has many widely used and [interoperable implementations](interop_section).
With OpenPGP, you can:
- [Encrypt](encryption_chapter) and [decrypt](decryption_chapter) messages
- [Sign](signing_data) and [verify](verification_chapter) data
2023-10-29 23:43:14 +01:00
- [Issue certifications and examine statements](component_signatures_chapter) about keys and identities, similar to the role of a Certificate Authority in validating identities.
2023-10-12 11:54:40 +02:00
To enable these operations, OpenPGP utilizes a set of [established cryptographic mechanisms](cyrptography_chapter). These building blocks are integrated into OpenPGP's standard, which also addresses identities and their verification.
## Who is the audience for this document?
2023-09-15 13:05:07 +02:00
Three groups of people interact with OpenPGP:
2023-09-15 13:05:07 +02:00
1. End-users, who use software that contains OpenPGP functionality (e.g., the Thunderbird email software)
2023-09-15 13:05:07 +02:00
2. Software developers who build applications that contain OpenPGP functionality
3. Implementers of OpenPGP libraries (or other software that directly handles the processing of internal OpenPGP data structures)
2023-09-15 13:05:07 +02:00
2023-09-29 09:07:56 +02:00
This document is focused on the second group, application developers, who use OpenPGP functionality in their software projects. It describes the properties of the OpenPGP system and its uses. It presupposes solid knowledge of software development concepts and of general cryptographic concepts. Thus, this text describes OpenPGP at the "library-level," teaching concepts that will help software developers get started as a user of any implementation (e.g., [OpenPGP.js](https://openpgpjs.org/), [Sequoia-PGP](https://sequoia-pgp.org/)).
2023-09-15 15:51:31 +02:00
```{admonition} TODO
:class: warning
Heiko, we should elaborate a bit on why here
2023-10-05 13:34:37 +02:00
arguments:
- standardized cryptographic system
- long history, broard support
- lately: many high-quality, modern, library implementations (in the past there were no good ways to integrate openpgp into applications)
- the new version of the standard is almost ready, defining a modernized version 6 of the protocol
- all of this together: it's now easier than ever to add openpgp functionality to applications, and the updated standard brings the cryptographic building blocks up to the state of the art
```
2023-09-15 13:05:07 +02:00
This document is not intended for end-users. It is also not for implementers of OpenPGP libraries (or other software that directly handles internal OpenPGP data structures).
2023-09-15 13:05:07 +02:00
2023-09-15 15:51:31 +02:00
## Why not just use the OpenPGP RFC?
2023-09-15 13:05:07 +02:00
The [OpenPGP RFC](https://datatracker.ietf.org/doc/draft-ietf-openpgp-crypto-refresh/)
defines *the message formats used in OpenPGP.* That is, it describes the internal structure of OpenPGP data, which is crucial for OpenPGP library implementers. However, this level of detail is not required for software developers who use OpenPGP via a library.
2023-09-15 13:05:07 +02:00
This document describes OpenPGP concepts at the "library" level of abstraction, omitting unnecessary detail about the internal encoding of OpenPGP artifacts. Instead, we focus on the properties of these OpenPGP artifacts and how they are used, while adding context that is not elaborated on in the RFC.
2023-09-15 13:05:07 +02:00
2023-09-15 15:51:31 +02:00
## Which version of OpenPGP does this address?
2023-09-15 13:05:07 +02:00
The documentation will mainly cover version 6 of OpenPGP, while occasionally noting differences to previous versions that are relevant to application developers.
2023-09-15 13:05:07 +02:00
2023-09-15 15:51:31 +02:00
Version 4 of OpenPGP will remain relevant for a number of years;
2023-09-15 16:02:19 +02:00
some version 3 artifacts are still in use as of this writing.