Update Posts “encryption”

This commit is contained in:
2026-02-03 14:32:52 +04:00
parent 102522f268
commit 24d8ab0f29

View File

@@ -1,20 +1,19 @@
---
title: Encryption Example
published: 2020-02-02
description: 'Password: 123456'
draft: false
encrypted: true
title: Encryption Example22
published: 2020-02-02
pinned: false
description: "Password: 123456"
tags:
- Encryption
password: "123456"
tags: [Encryption]
category: Examples
---
# Password Protected Post
# Password Protected Post22
This is an example of a password-protected post in the Twilight theme. The content below is encrypted using AES and can only be viewed by entering the correct password.
## Frontmatter Example
```yaml
@@ -27,12 +26,11 @@ password: "your-password"
---
```
- `encrypted` - Whether encryption is enabled for the post.
- `password` - The password required to unlock the content.
* `encrypted` - Whether encryption is enabled for the post.
* `password` - The password required to unlock the content.
## Note
:::warning
Do not use this for extremely sensitive information like bank passwords or private keys. The encryption happens on the client side, and the password itself is stored in the post's metadata (though usually not displayed directly).
:::
:::