As the poster mentioned in the first line of b10m's OP, I find this an interesting follow-up. Asking for user and password obviously wouldn't work for database-driven sites where content is being served up for any number of anonymous visitors.

And as I mentioned in my my reply to b10m, I'm trying to avoid hardcoding the DBI connect info into the scripts, just to make it more transportable.

What's the feeling around the monastery towards encrypting sensitive info somehow? Encrypt it when it is put into the text file, and decrypt in the scripts connecting to the DB. Maybe this falls into the realm of "security through obscurity" (still relatively new to Perl, I'm not even sure if descent codable encrytion exists).

It will be interesting to see how other monks weigh in on this one.

Update: After a Saturday of researching, I have started encrypting my DBI log-ons with Crypt::CBC. Yes, it does use a key which I plan to store in a SSL protected directory on the host's server (they offer a shared certificate for $1/mo). That's the best I can hope for now.

Update 2: My host said storing my key in a SSL protected directory won't gain me a thing. They did suggest chmoding a file with my key to 600 and putting it into the root, outside all web folders.

—Brad
"A little yeast leavens the whole dough."

In reply to Re: Securing your scripts on webhoster's server by bradcathey
in thread Securing your scripts on webhoster's server by b10m

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.