Skip to content

Commit

Permalink
docs: add encryption ctx, envelope encryption terminologies
Browse files Browse the repository at this point in the history
  • Loading branch information
heitorlessa committed Dec 18, 2023
1 parent b395f12 commit 13a1f5d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/utilities/data_masking.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@ stateDiagram-v2

**Decrypting** transforms ciphertext back into plaintext using a decryption algorithm and the correct decryption key.

**Encryption context** is a non-secret `key:value` data used for authentication like `tenant_id:<id>`. This adds extra security and confirms data decryption is related to a given context.

**Envelope encryption** uses two different keys to encrypt data safely: master and data key. The data key encrypts the plaintext, and the master key encrypts the data key. It simplifies key management (_you own the master key_), isolates compromises to data key, and scales faster with large data volumes.

<center>
```mermaid
graph LR
M(Master key) --> |Encrypts| D(Data key)
D(Data key) --> |Encrypts| S(Sensitive data)
```
<i>Envelope encryption visualized.</i>
</center>

## Getting started

### Install
Expand Down

0 comments on commit 13a1f5d

Please sign in to comment.