Encrypt Blogs

外掛說明

Encrypt Blogs is a WordPress plugin that allows you to encrypt specific content blocks in your posts and pages. It provides flexible time-based encryption with support for both PHP and GPG encryption methods.

Key Features

Time-based content encryption
Support for both PHP (AES-256-CBC) and GPG encryption
Multiple display modes for encrypted content
Custom Gutenberg block for easy content management
Flexible date/time format support

Display Modes

Hidden – Completely hide the encrypted content
Show Encrypted – Display the encrypted text
Show Message – Display a custom message
Redacted – Show a redacted placeholder

Time Format Support

Supports various date/time formats:

Full format: “2024-03-25 14:30”
Date only: “2024-03-25”
Month and day: “03-25”
Time only: “14:30”

Usage

Create a new post or edit an existing one
Add the ‘Encrypted Content’ block
Enter your content
Set encryption parameters in the block settings:

Start Date (optional)
End Date (optional)
Display Mode

Publish or update your post

Configuration

Navigate to Settings > Encrypt Blogs
Choose your preferred encryption method:

PHP Encryption (AES-256-CBC)
GPG Encryption

Configure the chosen method:

For PHP: Set a secure passphrase
For GPG: Add your public/private keys and passphrase

Development

GitHub repository: https://github.com/bokumin/encrypt-blogs
Please report issues and contribute patches through GitHub

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Encrypted Content

安裝方式

Upload the encrypt-blogs directory to the /wp-content/plugins/ directory
Activate the plugin through the ‘Plugins’ menu in WordPress
Go to Settings > Encrypt Blogs to configure your encryption settings
Start using the ‘Encrypted Content’ block in your posts

常見問題集

Which encryption methods are supported?

The plugin supports two encryption methods:

PHP encryption using AES-256-CBC
GPG encryption using GnuPG

How does time-based encryption work?

You can specify start and end dates for encryption. The content will only be encrypted during this period. If no dates are specified, the content remains encrypted indefinitely.

Is it secure?

Yes. The plugin uses industry-standard encryption methods:

PHP encryption uses AES-256-CBC
GPG encryption uses your own GPG keys
Keys and passphrases are stored securely in WordPress options

What happens to the content after the end date?

After the end date passes, the content automatically becomes visible in its unencrypted form.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Encrypt Blogs〉的開發相關工作。

參與者

將〈Encrypt Blogs〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.0

Security improvement: Replaced exec()/shell_exec() with gnupg extension
Fixed: Proper implementation of wp_enqueue_script() and wp_add_inline_script()
Enhanced: Added sanitization callbacks for register_setting()
Updated: Settings fields now use proper WordPress sanitization functions

1.0.2

Added support for additional date/time formats
Improved error handling for GPG encryption
Enhanced security measures

1.0.1

Fixed block editor integration issues
Improved date parsing reliability

1.0.0

Initial release