Repository navigation
Releases
Releases · thiennhant95/wp-encrypted-fields
v0.4.0
Breaking namespace cleanup release.
Changed
- Renamed the vendor-prefixed PHP namespace to
EncryptedFields. - Renamed the legacy cipher class to
LegacyCipherand its integration namespace toIntegrations\Legacy. - Renamed config presets to
full.php/legacy.php; the setup preset is nowfull.
Removed
- Removed the old prefixed legacy constants/environment fallback; use
KEC_LEGACY_*. - Removed legacy vendor branding from code, docs and the landing page.
Upgrade
- Update custom code/configuration that references the old namespace, class names, preset slug or legacy constant prefix.
- Stored ciphertext does not need migration.
v0.3.0
Automatic safety dumps before migration, rollback and key rotation, plus a 100-plugin compatibility matrix.
Added
- Safety dump of affected tables before real migration, rollback and key rotation. Files are 0600 in a 0700 directory, the last five are kept, and
--no-safety-dump/KEC_SAFETY_DUMP_DIRprovide overrides. - Bilingual GitHub Pages landing page at https://thiennhant95.github.io/wp-encrypted-fields/ (Vietnamese at /vi/).
Tests
- Expanded compatibility from 75 to 100 plugins: 99 pass. The only failure is
encrypted-blog, which fatals during its own activation. - New coverage includes bbPress, BuddyPress, FluentCRM, Fluent Support, Groundhogg, WP ERP, membership/LMS, forms, CRM and email-delivery plugins.
Encrypted Fields 0.2.3
Added
wp kec statusand the admin Health tab warn when a known plaintext
email/CRM plugin is active (WP Mail Logging, Post SMTP, MailPoet,
FluentCRM).- Admin Settings and the Setup Wizard use full-row verification instead of a
sample.
Tests
- Polylang two-language setup: translated posts, encrypted meta, blind-index
search and language-filtered queries verified. - Added a StateDetector regression test for plaintext plugin warnings.
Encrypted Fields 0.2.2
Fixed
- User creation on multisite (and WP-CLI user creation) no longer reports a
duplicate email after the account was already inserted. The email is
tokenized before WordPress runs its duplicate-email check, so role/site
assignment completes. - Password-only updates on multisite keep the tokenized email/login columns.
Changed
- Documented that email logging/CRM plugins (WP Mail Logging, MailPoet,
FluentCRM) store data in their own tables/options and are not encrypted.
WP Mail Logging stores decrypted recipients, subjects and bodies in
plaintext; use it only when that is acceptable or add a table adapter.
Tests
- Added
pre_user_emailand pending-email regression tests. - Verified per-site meta encryption, search indexes and shared user columns on
a two-site multisite install.
Encrypted Fields 0.2.1
Fixed
- Password-only or partial
wp_update_user()calls no longer blank the
tokenizeduser_email/user_logincolumns; the token is rebuilt from the
encrypted user meta. - Admin/email lookups keep working after a password-only update.
Tests
- Added a regression test for blank-email partial updates.
Encrypted Fields 0.2.0
Added
- Serialized array/object meta encryption for declared fields; values decrypt
back to arrays. wp kec verify --full: decrypt every row in batches and require a non-empty
search index when searchable fields exist.- Registered
UserLookup;WP_User_Querylogin/emailLIKEsearches now use
the blind index. - Search index hooks for added/updated/deleted post, user, term and comment
meta. - WooCommerce: automatic widening of short
wc_customer_lookupcolumns,
length checks in migration and analytics writes, and address-index fields in
examples/presets. TableAdapterInterface::table(),primaryKey()andwrite(): bool, with
identifier validation and a cursor-stall guard.- CLI aliases
migrate-tableandrotate-key;search --entity/--limit,
migrate --field=entity:key,--fullverification, and clear errors for
invalid--fromvalues. - Cipher-name validation and a database-key warning in
wp kec status. - Tokenizer fallback when
ext-intlis not available. - Go-live/post-import checklist docs, GitHub issue/PR templates and a code of
conduct. - Regression tests for serialized meta, LIKE escaping and cipher validation.
Changed
- Decrypt/rollback bypass the meta write guard, keep the search index, and
require backup acknowledgement for whole-registry rollback. - Migration scans fail closed; resume cursors advance only after success;
stored error lists are capped; the migration lock is atomic and renewed. - Backup acknowledgement expires after 24 hours.
- Uninstall restores tokenized user columns before removing code and keeps the
key if restoration fails. - HPOS detection is aligned; the admin registry refuses post fields when HPOS
is on; the setup wizard no longer forces backup confirmation. - WooCommerce analytics respects default-deny and skips too-long ciphertext
instead of truncating it. - Missing optional lookup tables are skipped cleanly.
- Rotation verifies all rows and no longer errors when
siteguard_historyis
absent. - Full verification is batched to avoid memory spikes on large sites.
Fixed
wp kec decryptreported success while the write guard re-encrypted data and
removed search-index rows.UserLookupfailed forLIKEterms containing escaped_or%.- Serialized single-value meta triggered a WordPress array-key warning.
wc_customer_lookup.usernameoverflow could fail or truncate.- WooCommerce
_billing_address_index/_shipping_address_indexleaked
plaintext unless declared. - Uninstall used wrong option names and could leave tokenized users locked out.
- CLI option parsing/docblock mismatches for search, rollback,
migrate-table
androtate-key. - Invalid
--fromvalues were silently accepted.
Security
- Cipher overrides are restricted to known cipher names.
- Warn when
KEC_ALLOW_DB_KEYstores the master key in the database. - Documented that
post_content/post_title,wp_optionsand undeclared
custom tables remain plaintext.