This may be
completly off base and out of my league.. but an interesting question came up the other day. We have some outside consultants working on various apsects of our system here. Our inside programmers have written a lot of code to tweak/get around/"fix"/speed-up various parts of the system. A programmer said that he wondered if the consultants would take the perl code and reuse it back "home". They don't currently have access to it, but they've requested access to the box it's on. Creating licenses aside, I wonder if the following idea is possible:
Create a secure/public keyring pair for the server itself.
Store secure keyring in /root/.whoknows/secret.gpg (whatever..)
Encrypt the perl code as if you were sending it to the server as the recipient. (server@yourhouse.com.. whatever)
Leave the encrypted code where it is. Delete the unencrypted code.
An Apache module, when the server is started, will read in the encrypted code, unencrypt it (via a passphrase that's stored in httpd.conf), and let Apache continue to store the unencrypted code in memory like normal.
I don't know if this has been talked about, recently or ever. If it has been I can see it getting shot down for a few reasons:
People having access to httpd.conf will get the passphrase
A httpd-start / httpd-restart would most likely take an incredibly long time to unencrypt all that code..
It's just a simple thought. I wondered if anybody had any insight. Either slap me and call me stupid or tell me where I can look into this a bit more. ;)
_14k4 -
perlmonks@poorheart.com (
www.poorheart.com)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.