feat: update tiny encrypt spec v1.1

This commit is contained in:
2023-02-12 21:24:56 +08:00
parent a83e4674ad
commit 196a99825d

View File

@@ -13,15 +13,15 @@ File format:
Meta format: Meta format:
| Field | Type | Comment | | Field | Type | Comment |
|---------|---------|---------------------------------------------| |---------|---------|----------------------------------------------|
| version | String | Constant value: `1.1` | | version | String | Constant value: `1.1` |
| created | Long | Created time, Unix Epoch | | created | Long | Created time, Unix Epoch |
| userAgent | String | User Agent, e.g. `TinyEncrypt v0.5.1@MacOS` | | userAgent | String | User Agent, e.g. `TinyEncrypt v0.5.1@MacOS` |
| comment | String | Plain text comment | | comment | String | Plain text comment |
| encryptedComment | String | Encrypted comment | | encryptedComment | String | Encrypted comment |
| pgpEnvelop | String | Deprecated PGP Publickey Encrypted DataKey | | pgpEnvelop | String | `deprecated` PGP Publickey Encrypted DataKey |
| pgpFingerprint | String | Deprecated Hex(Sha256(PGP Publickey)) | | pgpFingerprint | String | `deprecated` Hex(Sha256(PGP Publickey)) |
| envelop | String | Deprecated KMS Encrypted DataKey | | envelop | String | `deprecated` KMS Encrypted DataKey |
| envelops | Envelop[] | Envelop Array | | envelops | Envelop[] | Envelop Array |
| nonce | byte[] | GCM Nonce | | nonce | byte[] | GCM Nonce |
| fileLength | Long | File Length | | fileLength | Long | File Length |