Repository navigation
fix: detect Base64 encoded messages on decrypt - #831
Merged
Merged
Conversation
added 8 commits
October 8, 2026 00:17
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
force-pushed
the
aniravk/base64-encoded-message-hint-decrypt
branch
from
November 11, 2026 23:52
2412b0c to
65e120e
Compare
The codebuild/py38 and codebuild/py39 buildspecs were removed along with Python 3.8 and 3.9 support.
lucasmcdonald3
left a comment
Contributor
There was a problem hiding this comment.
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
approved these changes
Nov 12, 2026
lucasmcdonald3
left a comment
Contributor
There was a problem hiding this comment.
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
This was referenced Nov 16, 2026
akareddy04
added a commit
that referenced
this pull request
Nov 17, 2026
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: