Base64 encode on shell

Sometimes you need to encode a string  with a base64 encoding. For example when trying to send a HTTP request with a Basic Authentication header like that:

As you can see the Basic Auth username and password are included in the request as a base64 encoded string. On the Linux shell this string can […]

Htaccess Auth for wget and curl

You can download files protected by Basic Htaccess Auth via wget like that:

Or via curl like that: