If you are using Apache as your web server you can password protect files by modifying the .htaccess file. See a tutorial on that at
http://httpd.apache.org/docs/howto/htaccess.html.
You can create a database to hold your username and passwords but you will have to find out which DB your hosting supports. The easiest would be to use a PHP/MySQL setup.
Lee