Skip to content

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

Merged
akareddy04 merged 3 commits into
masterfrom
reapply-831
Nov 17, 2026
Merged

akareddy04 merged 3 commits into
masterfrom
reapply-831

Conversation

@akareddy04

@akareddy04 akareddy04 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Issue #, if available: #192

Description of changes:

Re-applies #831 (reverted in #834) so the squash commit credits the original contributor, @evgpisarchik. Stacked on #834 to demonstrate CI passes with these changes restored.

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.

Also moves Linux CI to CodeBuild-hosted runners and stops testing on Python 3.8 and 3.9.

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

@akareddy04
akareddy04 requested a review from a team as a code owner November 17, 2026 17:29
akareddy04 and others added 2 commits November 17, 2026 10:47
…n 3.8 and 3.9

Co-authored-by: Eugene Pisarchik <et.pisarchik@vebtech.by>
Co-authored-by: Lucas McDonald <lucmcdon@amazon.com>
Co-authored-by: Anirav Kareddy <aniravk@amazon.com>
@akareddy04
akareddy04 force-pushed the revert-831-aniravk/base64-encoded-message-hint-decrypt branch from 5a2da9e to 3039075 Compare November 17, 2026 18:48
lucasmcdonald3
lucasmcdonald3 previously approved these changes Nov 17, 2026
@akareddy04
akareddy04 changed the base branch from revert-831-aniravk/base64-encoded-message-hint-decrypt to master November 17, 2026 22:35
@akareddy04
akareddy04 dismissed lucasmcdonald3’s stale review November 17, 2026 22:35

The base branch was changed.

@akareddy04
akareddy04 merged commit 7cfc76f into master Nov 17, 2026
100 of 170 checks passed
@akareddy04
akareddy04 deleted the reapply-831 branch November 17, 2026 22:43
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