Skip to content

Instantly share code, notes, and snippets.

@adrianbiro
Last active June 24, 2023 13:28
Show Gist options
  • Save adrianbiro/557dce376a40fee577681a2b6fb84c20 to your computer and use it in GitHub Desktop.
Save adrianbiro/557dce376a40fee577681a2b6fb84c20 to your computer and use it in GitHub Desktop.

padding

$ echo YXNkcQo= | base64 -d
asdq
$ echo YXNkcQo | base64 -d
asdq
base64: invalid input
$echo YXNkcQo= | awk '{if (length % 4 == 0){print}}' | base64 -d 
asdq
$ echo YXNkcQo | awk '{if (length % 4 == 0){print}}' | base64 -d 
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment