Create Basic Auth

You might need to generate basic authentication string when trying to use apache htaccess or for restricting web access.

The simple way to generate it is by using openssl.

echo -n username:password | openssl base64

Leave a Reply

Your email address will not be published. Required fields are marked *