2 Commits

Author SHA1 Message Date
Zoltán Kéri
d802a4e9fa encoding/base32: Fix padding validation for malformed input
Fix a bug where padding characters in the middle of input were
not detected when there was no trailing padding.

The "verify no padding in middle" check was inside `if
padding_count > 0`, so inputs like "MZ===YTBMZXW6YTB" would
incorrectly pass validation.

Test case added for this edge case.
2025-12-27 04:30:37 +01:00
Jeroen van Rijn
aec7d6480b Package lines for base32, move its tests to tests" 2025-10-09 15:27:53 +02:00