Encrypts sensitive page content with password protection.
Uses SHA256-based XOR encryption for client-side decryption. Supports
password-protected pages via front matter configuration. Encrypted content
is embedded in HTML with decryption UI.
Properties
| Name | Type | Description |
|---|---|---|
encrypted |
frontmatter |
: true Enable encryption for page |
password |
frontmatter |
Required password for decryption |
protect |
transform |
-notes Automatic encryption transform |
encrypted |
layout |
.njk Template for encrypted content display |
Examples
// In markdown front matter
---
title: Private Page
encrypted: true
password: mypassword123
---
This content will be encrypted and require password to view.
Source: /Users/francisfontaine/Documents/GitHub/Standard/src/eleventy/encryption.js