ADDED: Added function for Basic Auth generation