function b64func { curl -X POST "https://base64.no/rocks/" --data "operation=Encode&payload=$1" 2> /dev/null | tr -d '\n'|pbcopy echo "result in pasteboard: `pbpaste`" } alias base64=b64funcIn the terminal, simply type "base64 whatever" and get the result in your pastebin, ready to be pasted right into your code or super secret email..