100 % reproducible on my Debian, package version 5.1-2:
$ echo "dc30a6d79f3b47e310b8b9f5fbadba57" | tee >( xxd -r -p | base64) | tee >(xxd -r -p | basenc --base64url )
dc30a6d79f3b47e310b8b9f5fbadba57 3DCm1587R+MQuLn1+626Vw== 3DCm1587R-MQuLn1-626Vz0Vhw==I first thought I missed something about base64url encoding, after hours or digging and digging documentation I tried :
$ echo "dc30a6d79f3b47e310b8b9f5fbadba57" | xxd -r -p | basenc --base64url 3DCm1587R-MQuLn1-626Vw== Those 4 extra characters "z0Vh" are quite disturbing :-/ Then I played more, cf. attachment. $ LANG= bash --version GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu) Cheers, --- Jean-Jacques.
bashbug.sh
Description: application/shellscript
OpenPGP_0xA3983A40D1458443.asc
Description: application/pgp-keys
OpenPGP_signature
Description: OpenPGP digital signature