On Linux, the syntax needs to be:
echo -n {secret/key} | base64
base64 --encoding throws this error:
base64: unrecognized option '--encoding'
base64 --help
Mandatory arguments to long options are mandatory for short options too.
-d, --decode decode data
-i, --ignore-garbage when decoding, ignore non-alphabet characters
-w, --wrap=COLS wrap encoded lines after COLS character (default 76).
Use 0 to disable line wrapping
On Linux, the syntax needs to be: echo -n {secret/key} | base64
base64 --encoding throws this error: base64: unrecognized option '--encoding'