base64 encode using curl code example Example: basic authentication bash $ echo -n user:password | base64