Here's a script to generate the digest auth line:
hash=`echo -n "$user:$realm:$pass" | md5sum | cut -b -32`
where $realm is "Restricted Zone".
All contents released under the GNU Free Documentation License.
All Source Mage code released under the GNU General Public License 2.0 or greater.