My two cents:

If you are going to use a flatfile, then you have a choice between a DBM file or an XML file. I'd go with XML - then you have all of the Perl XML toys to play with. Store the file outside of the web tree. You could also use DBM files, which are binary, but I don't think that they are encoded.

For the CGI access, you could use HTML::Embperl - it does not require mod_perl to run, you apparently can use it from CGI, and parse the XML file for what you needed. Hell, you could even try using XML::DOM and XML::XQL to query your data (spend the $120 on an extra stick of RAM). You might want to MD5 the password.

Not the most efficient solution, but if you can't use .htaccess, or mod_perl, then that should work.
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."


In reply to Re: CGI Password/Login and Security by chorg
in thread CGI Password/Login and Security by r.joseph

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.