Skip to content

fix: detect Base64 encoded messages on decrypt - #831

Merged
akareddy04 merged 14 commits into
masterfrom
aniravk/base64-encoded-message-hint-decrypt
Nov 12, 2026
Merged

akareddy04 merged 14 commits into
masterfrom
aniravk/base64-encoded-message-hint-decrypt

Conversation

@akareddy04

@akareddy04 akareddy04 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Issue #, if available: 192

Description of changes:

Decrypting the Base64 encoding of a message previously failed with the generic "Unsupported version 65" error. Per the Decrypt specification's Encrypted Message Format section, detect the Base64 encoding of the first two bytes of each supported message format version ("AY" for V1, "Ag" for V2) and raise a more specific NotSupportedError.

This PR also includes fixes to the CI.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check any applicable:

  • Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

@akareddy04
akareddy04 requested a review from a team as a code owner November 11, 2026 19:51
Decrypting the Base64 encoding of a message previously failed with the
generic "Unsupported version 65" error. Per the Decrypt specification's
Encrypted Message Format section, detect the Base64 encoding of the first
two bytes of each supported message format version ("AY" for V1, "Ag" for
V2) and raise a more specific NotSupportedError.

The check only runs after the version ID fails validation, so valid
messages are unaffected.
The CodeBuild images no longer provide .NET 6, and .NET 8 reached end of support on 2026-11-10. Use .NET 10 (the current LTS), which is available on the standard:7.0 image these jobs use.
…T runtime

The .NET test vectors only target net6.0, which the CodeBuild image no longer provides. Pin .NET 10 and set DOTNET_ROLL_FORWARD=Major so the net6.0 test host runs on it.
…rsion

Detection only depends on the first two bytes of the message, which are fixed
per message format version, so test the latest V1 and V2 algorithm suites
instead of every algorithm suite.
Python 3.8 and 3.9 have reached end of life. Stop testing them in CI, stop advertising them in package metadata and docs, and warn users still running them that they should upgrade to Python 3.10 or later.
@akareddy04
akareddy04 force-pushed the aniravk/base64-encoded-message-hint-decrypt branch from 2412b0c to 65e120e Compare November 11, 2026 23:52
The codebuild/py38 and codebuild/py39 buildspecs were removed along with Python 3.8 and 3.9 support.

@lucasmcdonald3 lucasmcdonald3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, when squashing-and-merging please use this commit message:

fix: detect Base64 encoded messages on decrypt, stop testing on Python 3.8 and 3.9

@lucasmcdonald3 lucasmcdonald3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, when squashing-and-merging please use this commit message:

fix: detect Base64 encoded messages on decrypt, stop testing on Python 3.8 and 3.9

@akareddy04
akareddy04 merged commit 8136b2b into master Nov 12, 2026
161 checks passed
akareddy04 added a commit that referenced this pull request Nov 17, 2026
This reverts commit 8136b2b.

#831 will be re-merged with the original contributor credited.
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.

2 participants