You may want to use -n to skip the newline and the end.
You may also want to single quote the text to negate expansion when doing the opposite and encoding the text.
echo -n 'my text' | base64
You may want to use -n to skip the newline and the end.
You may also want to single quote the text to negate expansion when doing the opposite and encoding the text.
echo -n 'my text' | base64