Hi,

> I might be missing some context here, so I wanted to ask: is this behavior 
> intentional,
> or would it make sense to enforce stricter validation for Base32hex input?

That's intentional - see the discussion above:

"""
[...]
This code checks if the remaining bits of the input data are all zero.
IIUC we don't have a similar check for base64 and base64url. For
instance, the following input data is accepted:

=# select decode('AB', 'base64');
 decode
--------
 \x00
(1 row)
"""

Also see the documentation in respect of padding.

-- 
Best regards,
Aleksander Alekseev


Reply via email to