From 9a6e5ff067deb87f13c3205942d27c26c6e8e794 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 25 Mar 2023 15:50:39 +0800 Subject: [PATCH] feat: update spec1.1 --- TinyEncryptSpecV1.1.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/TinyEncryptSpecV1.1.md b/TinyEncryptSpecV1.1.md index 82f6e21..3106e7c 100644 --- a/TinyEncryptSpecV1.1.md +++ b/TinyEncryptSpecV1.1.md @@ -26,16 +26,16 @@ Meta format: | ageRecipient | String | `deprecated` Hex(Sha256(PGP Publickey)) | | envelop | String | `deprecated` KMS Encrypted DataKey | | envelops | Envelop[] | Envelop Array | -| nonce | String | `base64` GCM Nonce | +| nonce | String | `base64` GCM Nonce | | fileLength | Long | File Length | | fileLastModified | Long | File Last Modified, Unix Epoch | -| compress | Boolean | Compressed or Not | +| compress | Boolean | Compressed or Not, GZIP if `true` | Envelop format: -| Field | Type | Comment | -|--------------|--------|--------------------------| -| type | String | `kms`, `pgp`, ... | -| kid | String | Key ID | -| desc | String | \[Optional\] Description | -| encryptedKey | String | `base64` Encrypted Key | \ No newline at end of file +| Field | Type | Comment | +|--------------|--------|-------------------------| +| type | String | Type: `kms`, `pgp`, ... | +| kid | String | Key ID | +| desc | String | `optional` Description | +| encryptedKey | String | `base64` Encrypted Key | \ No newline at end of file