Skip to content

Commit df9cf92

Browse files
BenehikoCopilot
andauthored
chore: update readme - decode base64
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8368b1a commit df9cf92

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,17 @@ The value of a secret is always encoded into base64.
241241
When using Go's `json.Unmarshal` it will automatically convert it back into
242242
a slice of bytes `[]byte`.
243243

244-
To manually decode it, you can pipe the value into `base64 --decode -i`.
244+
To manually decode it, you can pipe the value into `base64`, using the
245+
flags appropriate for your platform:
245246

246247
```bash
247-
echo "<base64 string>" | base64 --decode -i
248+
# macOS / BSD
249+
echo "<base64 string>" | base64 -D
250+
251+
# GNU/Linux (coreutils)
252+
echo "<base64 string>" | base64 --decode
253+
# or
254+
echo "<base64 string>" | base64 -d
248255
```
249256

250257
## Legal

0 commit comments

Comments
 (0)