Skip to content
Honmaple
Documentation navigation

encrypt

On this page

Encrypt

Encrypt content:

hooks:
  encrypt:
    enabled: true
    weight: 2
    option:
      mode: "cbc"
      password: "default-password"

Supported modes are cbc (default), ctr, cfb, and ofb.

Entire Page

---
password: "123456"
---

Part of a Page

<shortcode encrypt password="123456">
Encrypted content
</shortcode>

In Templates

{{ page.Content | encrypt:"123456" }}