<?xml version="1.0" encoding="windows-1252"?>
<node id="1000380" title="Re^3: Encrypt files on server and then decrypt when user downloads" created="2012-10-22 12:31:57" updated="2012-10-22 12:31:57">
<type id="11">
note</type>
<author id="131741">
zentara</author>
<data>
<field name="doctext">
If by &lt;i&gt;decrypt when the user downloads&lt;/i&gt; means that the server just spits out a decrypted GPG pipe, and sends plain text over the network to the client, that is fairly easy, but I would'nt call it secure. Anyone can see all your files by sniffing the network.&lt;p&gt;
So you are stuck sending information thru GPG encrypted mail, because I don't think GPG has a browser plugin to decode web content. Another limited option would be making GPG encrypted files available for HTML download.&lt;p&gt;
You are asking for free easy help for a big time program. Google for &lt;i&gt;  Perl GPG HTML &lt;/i&gt; and &lt;i&gt;Linux GPG webmail &lt;/i&gt;, and you should get some pretty good guidance by going thru the links. Personally, I really like the new javascript methods around now, as I mentioned in reference to Processing.js. That way, if you could write a .pde script for Processing, you could setup a fairly secure channel to the client. And run it in the DOM , as a javascript application with a canvas id . My rational is that I don't think you can encode web content with GPG, you can only send encrypted mails. So you will need a custom Processing script to do the decoding on the client end. Maybe not GPG, but you could make up your own decoder, within the limits of what javascript will allow. You could decode on the server, and feed the data stream to a custom canvas running under Processing.js, which could run a simpler faster algorithm like RC4, Blowfish, or Rijandael. 
You could just implement the old "Caesar's Cipher" for encryption... ;-)
&lt;p&gt;
But it isn't Perl, so all I will do, is leave it at that. From what I understand, someone is working on something similar for Perl, call &lt;a href=  http://perlcabal.org/~fglock/perlito5.html&gt; Perlito&lt;/a&gt;, but I doubt it will ever eclipse the geniuses at M.I.T who produced Processing and Processing.js. 

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-131741"&gt;
&lt;hr /&gt;
I'm not really a human, but I play one on earth.&lt;br&gt;
[id://630805] ................... &lt;a href=http://zentara.net/japh.html&gt; flash japh &lt;/a&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1000019</field>
<field name="parent_node">
1000357</field>
</data>
</node>
