Encrypt Blogs

Description

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

Blocks

This plugin provides 1 block.

  • Encrypted Content

Installation

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

FAQ

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.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Encrypt Blogs” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Encrypt Blogs” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

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