Skip to content

Explain the base64 in Encryption where a reviewer will look - #12

Merged
ibuilder merged 1 commit into
mainfrom
docs/encryption-base64-rationale
Aug 16, 2026
Merged

Explain the base64 in Encryption where a reviewer will look#12
ibuilder merged 1 commit into
mainfrom
docs/encryption-base64-rationale

Conversation

@ibuilder

Copy link
Copy Markdown
Owner

Running the WordPress.org submission preflight surfaced five base64 hits in Support\Encryption with the note "base64 usage reads as obfuscation to reviewers. Justify it in a comment or remove it."

The calls are legitimate — AES-256-GCM emits raw bytes (IV, auth tag, cipher text) that cannot be stored in a wp_option as-is — and each line already carried a phpcs:ignore saying so. But those annotations sit at the right-hand end of long lines and are easy to miss. Since a human reviewer reads this flag by hand, the reason now sits at the top of the class where they will actually look.

No behaviour change. Released as 3.0.1 so the ZIP submitted to WordPress.org corresponds to a tag rather than to an untagged main.

Verified: 106 tests pass, PHPCS clean across 52 files, preflight 0 errors, and Plugin Check clean on the exact submission tree across every category with experimental checks at severity 1.

🤖 Generated with Claude Code

Every static scanner flags base64 as possible obfuscation, and the
WordPress.org submission preflight is no exception — it reports five hits in
Support\Encryption and asks for a justification in a comment. The per-line
phpcs:ignore annotations already carried one, but they sit at the right-hand
end of long lines and are easy to miss.

The reason belongs at the top of the class, because a human reviewer reads that
flag by hand: AES-256-GCM emits raw bytes — initialisation vector, auth tag and
cipher text — which cannot be stored in a wp_option as-is. base64 is the
transport encoding, applied after encryption and reversed before decryption.
The plugin ships no encoded source, no encoded payloads and no encoded URLs.

No behaviour change. Released as 3.0.1 so the artifact submitted to
WordPress.org corresponds exactly to a tag rather than to an untagged main.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ibuilder
ibuilder merged commit 0728e44 into main Aug 16, 2026
13 checks passed
@ibuilder
ibuilder deleted the docs/encryption-base64-rationale branch August 16, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant