<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Max Techera</title>
    <description>The latest articles on DEV Community by Max Techera (@maxtechera).</description>
    <link>https://dev.to/maxtechera</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4256357%2F04023b0f-7061-47e2-ab97-9b8dcd4576f7.jpg</url>
      <title>DEV Community: Max Techera</title>
      <link>https://dev.to/maxtechera</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maxtechera"/>
    <language>en</language>
    <item>
      <title>How I encrypt my AI agent's HTML before it ever reaches a server</title>
      <dc:creator>Max Techera</dc:creator>
      <pubDate>Fri, 20 Nov 2026 21:14:45 +0000</pubDate>
      <link>https://dev.to/maxtechera/how-i-encrypt-my-ai-agents-html-before-it-ever-reaches-a-server-57oi</link>
      <guid>https://dev.to/maxtechera/how-i-encrypt-my-ai-agents-html-before-it-ever-reaches-a-server-57oi</guid>
      <description>&lt;p&gt;Most share links protect a file with a login screen on someone else's server. The server holds the readable file and decides who gets it. When I built &lt;a href="https://hushdrop.dev/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=encryption-post" rel="noopener noreferrer"&gt;Hushdrop&lt;/a&gt;, a tool my agents use to turn the HTML they write into share links, I wanted locked pages to work the other way around: encrypted on my laptop, stored as ciphertext, decrypted only in the reader's browser.&lt;/p&gt;

&lt;p&gt;Here's every step between &lt;code&gt;npx hushdrop report.html&lt;/code&gt; and someone reading the page, with the real parameters.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. You publish
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx hushdrop report.html                    &lt;span class="c"&gt;# generates a password for you&lt;/span&gt;
npx hushdrop report.html -p &lt;span class="s1"&gt;'correct horse battery'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The CLI adds branding first (title, social preview tags, a small corner badge). Then it hands the page to &lt;a href="https://github.com/robinmoisson/staticrypt" rel="noopener noreferrer"&gt;StatiCrypt&lt;/a&gt;, an open-source encryption tool, before anything touches the network.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The password becomes a key
&lt;/h2&gt;

&lt;p&gt;The password is never used directly. It goes through PBKDF2 with SHA-256 for 600,000 iterations, together with a salt, to produce a 256-bit key. The iteration count is the point: every guess an attacker makes costs them the same 600,000 rounds.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The page is encrypted
&lt;/h2&gt;

&lt;p&gt;The whole HTML document is encrypted with AES-256 in CBC mode, and an HMAC over the ciphertext lets the browser detect tampering. The result is wrapped in a small unlock page: a logo, a password field and the decryption script. That unlock page plus the ciphertext is all that gets uploaded.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The server stores ciphertext
&lt;/h2&gt;

&lt;p&gt;Whether you self-host on your own Vercel Blob store or publish to hushdrop.dev, the stored file is the encrypted blob. The password isn't sent anywhere and isn't in the URL. Every drop is also served with &lt;code&gt;X-Robots-Tag: noindex&lt;/code&gt; and a strict Content-Security-Policy, so a leaked link doesn't end up in search results.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The reader decrypts in their browser
&lt;/h2&gt;

&lt;p&gt;The recipient opens the link and types the password. Their browser derives the same key with the Web Crypto API, checks the HMAC and decrypts the page in memory. The readable page never crosses the network.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this protects, and what it doesn't
&lt;/h2&gt;

&lt;p&gt;It keeps the content away from the host, from anyone who scrapes or intercepts the link, and from search engines.&lt;/p&gt;

&lt;p&gt;It does not save you from a weak password. The ciphertext can be downloaded, so someone with time can guess offline. That's why the generated passwords are long, and why the password should travel through a different channel than the link.&lt;/p&gt;

&lt;p&gt;Two modes work differently, and I'd rather say so up front:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A whole static site locked with &lt;code&gt;hush site/ -p secret&lt;/code&gt; (self-hosted) uses a password check at the edge (PBKDF2, 100,000 iterations) instead of encrypting every file.&lt;/li&gt;
&lt;li&gt;The hosted MCP server at &lt;code&gt;hushdrop.dev/mcp&lt;/code&gt;, which lets Claude, ChatGPT or Cursor publish with no install, receives the HTML from the agent, so the host can read those pages. If the host must never see the content, use the CLI.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Check it yourself
&lt;/h2&gt;

&lt;p&gt;The CLI, the unlock template and the server are MIT licensed and in the &lt;a href="https://github.com/maxtechera/hushdrop" rel="noopener noreferrer"&gt;public repo&lt;/a&gt;. Publish a page, download the stored file with &lt;code&gt;curl&lt;/code&gt;, and you'll see the unlock page and ciphertext, nothing else.&lt;/p&gt;

&lt;p&gt;If you want your agent to do this for you, the hosted MCP server is at &lt;code&gt;https://hushdrop.dev/mcp&lt;/code&gt;, and the local one is &lt;code&gt;npx -y hushdrop-mcp&lt;/code&gt;.&lt;/p&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
