Encode base64

python

python -m base64 -e <<< "sample string"
click the source code to copy install python on any operating system with command-not-found.com