spin base64

Encode and decode strings with base64.


Usage for "spin build"

spin base64 [OPTIONS] <file>


  • encode (or -e): Encode a string with base64
  • decode (or -d): Decode a string with base64


Encode a file with base64

spin base64 -e myfile.txt

Decode a file with base64

spin base64 decode myfile.txt

Special notes

This command runs the base64 command on your system, but it standardizes the syntax between Linux and macOS. This means you can use this command on both systems without having to remember the different syntax.