-d, --decode
Decode data.
An option of base64x.
Usage
base64x -d [FILE]
base64x --decode [FILE]Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-d | --decode | none | decode data |
Examples
Decode a value you found in a config file or an API response
echox aGVsbG8= | base64x -dhelloTurn that secret back into the key file in a CI job
printfx '%s' "$DEPLOY_KEY" | base64x -d > deploy-key.binDecode text pasted from an email, where line breaks and stray characters crept in
base64x -d -i pasted.txt > attachment.pdfMake sure a round trip gives back the same bytes
base64x file.bin | base64x -d > copy.bin && cksumx file.bin copy.binReject a payload that is not valid base64 before using it
base64x -d payload.txt > /dev/null && echox validHelp in the terminal
gnux help base64x --decode