<?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: Antipas Ringer</title>
    <description>The latest articles on DEV Community by Antipas Ringer (@antipas_ringer_73b7b1f677).</description>
    <link>https://dev.to/antipas_ringer_73b7b1f677</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%2F2939261%2F336eef78-1823-4c54-b90e-e4b0e16cc1ee.png</url>
      <title>DEV Community: Antipas Ringer</title>
      <link>https://dev.to/antipas_ringer_73b7b1f677</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/antipas_ringer_73b7b1f677"/>
    <language>en</language>
    <item>
      <title>How UndoHaven encrypts snapshots so a host never sees file names</title>
      <dc:creator>Antipas Ringer</dc:creator>
      <pubDate>Mon, 23 Nov 2026 23:28:20 +0000</pubDate>
      <link>https://dev.to/antipas_ringer_73b7b1f677/how-undohaven-encrypts-snapshots-so-a-host-never-sees-file-names-1d7k</link>
      <guid>https://dev.to/antipas_ringer_73b7b1f677/how-undohaven-encrypts-snapshots-so-a-host-never-sees-file-names-1d7k</guid>
      <description>&lt;p&gt;I build UndoHaven; this post is about how it handles encryption.&lt;/p&gt;

&lt;p&gt;UndoHaven is an unofficial third-party CLI for dsh, a local agent runtime. It takes an encrypted snapshot of a dsh home (plus &lt;code&gt;AGENTS.md&lt;/code&gt; and &lt;code&gt;skills/&lt;/code&gt; under &lt;code&gt;~/.agents&lt;/code&gt;) and writes the files back after you quit dsh. Restore is a command, not a screen inside the app, so it does not run against a session that is still writing.&lt;/p&gt;

&lt;p&gt;The default needs no account and no network. &lt;code&gt;npx undohaven init&lt;/code&gt; (or &lt;code&gt;undohaven snapshot&lt;/code&gt; later) writes ciphertext under &lt;code&gt;$DSH_HOME/undohaven&lt;/code&gt;, or &lt;code&gt;~/.dsh/undohaven&lt;/code&gt; if &lt;code&gt;DSH_HOME&lt;/code&gt; is unset. Storing the ciphertext next to the dsh home is intentional: the snapshot travels with that home. It is also the limit the homepage is explicit about. A full-permission agent can wipe a home directory, local backups included. The copy that survives that wipe is an export you take off the machine, a bucket you configure, or an upload after you log in.&lt;/p&gt;

&lt;p&gt;The rest of this post is how those bytes are sealed, and what restore refuses to do.&lt;/p&gt;

&lt;h2&gt;
  
  
  A data key, wrapped twice
&lt;/h2&gt;

&lt;p&gt;The client generates a 32-byte data key. It does not encrypt files with the passphrase itself. The passphrase is stretched with Argon2id (64 MiB of memory, 3 iterations, parallelism 1; the &lt;code&gt;memorySize&lt;/code&gt; value is 65536 because hash-wasm counts kibibytes), and that wrapping key seals the data key with AES-256-GCM. A 24-word recovery code, in the BIP39 layout, is 32 bytes of entropy plus a checksum. It wraps the same data key a second time, but with HKDF-SHA256 over the entropy, not Argon2. The recovery code already has 256 bits of randomness. A human-chosen passphrase does not.&lt;/p&gt;

&lt;p&gt;From the data key the client derives three more keys with HKDF-SHA256, each under a fixed info string: one to encrypt chunks, one to encrypt the manifest, and one to name chunks.&lt;/p&gt;

&lt;p&gt;If you lose both the passphrase and the recovery code, there is no reset. &lt;code&gt;init&lt;/code&gt;, a passphrase unlock, and a recovery-code passphrase change all write the unwrapped data key to local &lt;code&gt;keys.json&lt;/code&gt; (file mode 0600, directory 0700) so later snapshots on this machine do not prompt every time. &lt;code&gt;undohaven logout&lt;/code&gt; clears that field. &lt;code&gt;chmod&lt;/code&gt; has no effect on Windows. &lt;code&gt;keys.json&lt;/code&gt; sits in the same &lt;code&gt;$DSH_HOME/undohaven&lt;/code&gt; directory as the ciphertext, so syncing or copying the whole home takes the key along. The encryption protects copies that leave this machine; it does not defend a machine that is already compromised. An export file and, if you log in, the server carry only the wrapped keys.&lt;/p&gt;

&lt;h2&gt;
  
  
  Content-defined chunks, keyed names, then padding
&lt;/h2&gt;

&lt;p&gt;Each file is split with a normalized FastCDC cutter (Xia et al.). The gear table is a fixed SplitMix64 stream, so the same bytes cut at the same places on another machine. The defaults aim at a 1 MiB average chunk, with a 256 KiB floor and a 2 MiB cap, so a sealed chunk stays under a 4 MiB object limit.&lt;/p&gt;

&lt;p&gt;A chunk id is not a plain hash of the plaintext. It is HMAC-SHA256 of the plaintext under the chunk-id key. Duplicate chunks still collapse for the same data key, which is what you want across one person's snapshots. A host that only sees the ids cannot confirm a guessed file the way it could with unkeyed SHA-256.&lt;/p&gt;

&lt;p&gt;Each piece is optionally compressed with zstd if it is at least 32 bytes and the compressed form is actually smaller, then sealed: a version byte, a flag bit, a 12-byte nonce, AES-256-GCM ciphertext, and a 16-byte tag. On disk or in a bucket the sealed chunk is padded to a 64 KiB multiple (an &lt;code&gt;UHVP&lt;/code&gt; header, the true length, then zeros). The stored chunk size is not the plaintext length, and it is not the exact ciphertext length either. Export files and the encrypted manifest are not padded that way.&lt;/p&gt;

&lt;p&gt;Paths and per-file sizes live in the manifest, which is encrypted with the third derived key. The claim I will make about the hosted service is narrow: the server cannot see file contents or file names. That is spelled out on the &lt;a href="https://undohaven.com/encryption" rel="noopener noreferrer"&gt;encryption page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a snapshot refuses to pick up
&lt;/h2&gt;

&lt;p&gt;The walker does not follow symbolic links or Windows junctions. It skips the &lt;code&gt;undohaven&lt;/code&gt; data directory itself, &lt;code&gt;node_modules&lt;/code&gt;, cache, common model-weight extensions, and any file larger than 64 MB. Credentials (&lt;code&gt;.env&lt;/code&gt;, &lt;code&gt;.credentials.yaml&lt;/code&gt;) stay out unless you pass &lt;code&gt;--include-credentials&lt;/code&gt;. That flag is off by default. The free plan will still take a local snapshot that includes them if you opt in; it will not upload a snapshot that contains them.&lt;/p&gt;

&lt;p&gt;Those cuts are practical. They also mean a snapshot is not a whole-disk image. Files that were never snapshotted cannot be invented later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Restore runs after dsh has quit
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;undohaven restore --to SNAPSHOT_ID&lt;/code&gt; will not start if it thinks dsh is still up. UndoHaven itself listens on nothing; before restore it connects to &lt;code&gt;127.0.0.1&lt;/code&gt; and &lt;code&gt;::1&lt;/code&gt; on port 3999, plus &lt;code&gt;UNDOHAVEN_DSH_PORT&lt;/code&gt; if set, to see whether the dsh desktop app is open. On Unix it checks session and desktop lock files through &lt;code&gt;python3&lt;/code&gt; &lt;code&gt;flock&lt;/code&gt; or &lt;code&gt;/proc/locks&lt;/code&gt;, and refuses the restore if neither method is available. On Windows it looks at &lt;code&gt;tasklist&lt;/code&gt; for &lt;code&gt;dsh.exe&lt;/code&gt; and at a named semaphore. The error is blunt: quit first, so a live writer cannot race the rollback. There is an escape hatch, &lt;code&gt;UNDOHAVEN_ASSUME_DSH_STOPPED=1&lt;/code&gt;, which the code tells you not to set until dsh has actually exited.&lt;/p&gt;

&lt;p&gt;If the home still has files, restore takes a safety snapshot first, tagged &lt;code&gt;safety&lt;/code&gt; / &lt;code&gt;before-restore&lt;/code&gt;, then writes the selected scope back. Files in that scope that are not in the snapshot are deleted; they are still in the safety snapshot. Scopes include &lt;code&gt;all&lt;/code&gt;, &lt;code&gt;sessions&lt;/code&gt;, &lt;code&gt;storages&lt;/code&gt;, &lt;code&gt;config&lt;/code&gt;, &lt;code&gt;profile&lt;/code&gt;, scheduled tasks (&lt;code&gt;--scope tasks&lt;/code&gt;), or a single session. For a full or config restore it also drops a removed &lt;code&gt;tool-working-directory&lt;/code&gt; profile entry so a snapshot taken before dsh 0.2.2-rc.3 will still load on 0.2.2-rc.5. Session bytes, including workspace-root paths, are written as stored. dsh itself, not UndoHaven, moves the workspace root.&lt;/p&gt;

&lt;p&gt;When dsh will not start at all, &lt;code&gt;undohaven rescue --to SNAPSHOT_ID&lt;/code&gt; is narrower still. It does the same lock check and safety snapshot, then writes that profile's &lt;code&gt;package.json&lt;/code&gt;, &lt;code&gt;pnpm-lock.yaml&lt;/code&gt;, and &lt;code&gt;cordis.patch.yml&lt;/code&gt; back (&lt;code&gt;--scope profile&lt;/code&gt;). It does not try to replay the whole home while you are still figuring out why the process will not boot.&lt;/p&gt;

&lt;p&gt;The optional &lt;code&gt;dsh-undohaven&lt;/code&gt; plugin can take snapshots on start, on a 6-hour timer by default, and when the plugin is disposed. The startup snapshot only runs when the local data key is already unlocked. If the installed dsh base package version has changed, startup pins the previous snapshot as pre-upgrade and also stores a storage-only snapshot. Restore still happens from the CLI after you quit, so it does not conflict with a session that is writing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;The CLI needs Node.js 24.9 or newer (&lt;code&gt;undohaven-core&lt;/code&gt; itself accepts 22.19). As of 24 November 2026 (Asia/Shanghai), the published packages are &lt;code&gt;undohaven&lt;/code&gt; 0.1.14, &lt;code&gt;undohaven-core&lt;/code&gt; 0.1.15, and &lt;code&gt;dsh-undohaven&lt;/code&gt; 0.1.12.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx undohaven init
undohaven snapshot
undohaven list
&lt;span class="c"&gt;# quit dsh first, including the tray icon&lt;/span&gt;
undohaven restore --to SNAPSHOT_ID --scope all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Write the 24-word recovery code down off the machine when &lt;code&gt;init&lt;/code&gt; prints it. The crypto lives in the published &lt;a href="https://www.npmjs.com/package/undohaven-core" rel="noopener noreferrer"&gt;&lt;code&gt;undohaven-core&lt;/code&gt;&lt;/a&gt; package, in &lt;code&gt;src/crypto.js&lt;/code&gt;, &lt;code&gt;src/cdc.js&lt;/code&gt;, and &lt;code&gt;src/byo.js&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Site: &lt;a href="https://undohaven.com/" rel="noopener noreferrer"&gt;https://undohaven.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;UndoHaven is an unofficial third-party tool compatible with dsh. It is not affiliated with DeepSeek.&lt;/p&gt;

</description>
      <category>node</category>
      <category>encryption</category>
      <category>security</category>
      <category>cli</category>
    </item>
    <item>
      <title>4o chagpt Image Generator</title>
      <dc:creator>Antipas Ringer</dc:creator>
      <pubDate>Thu, 24 Apr 2025 03:14:31 +0000</pubDate>
      <link>https://dev.to/antipas_ringer_73b7b1f677/4o-chagpt-image-generator-4gc0</link>
      <guid>https://dev.to/antipas_ringer_73b7b1f677/4o-chagpt-image-generator-4gc0</guid>
      <description>&lt;h1&gt;
  
  
  4o-image MCP Server
&lt;/h1&gt;

&lt;p&gt;An MCP server implementation that integrates with 4o-image API, enabling LLMs and other AI systems to generate and edit images through a standardized protocol. Create high-quality art, 3D characters, and custom images using simple text prompts.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://glama.ai/mcp/servers/@Antipas/4oimage-mcp" rel="noopener noreferrer"&gt;&lt;br&gt;
  &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fglama.ai%2Fmcp%2Fservers%2F%40Antipas%2F4oimage-mcp%2Fbadge" alt="mcp-4o-Image-Generator MCP server" width="760" height="400"&gt;&lt;br&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/4oimage-mcp" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimg.shields.io%2Fnpm%2Fv%2F4oimage-mcp.svg" alt="npm version" width="80" height="20"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://nodejs.org" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimg.shields.io%2Fnode%2Fv%2F4oimage-mcp.svg" alt="Node.js Version" width="100" height="20"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://opensource.org/licenses/MIT" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fimg.shields.io%2Fbadge%2FLicense-MIT-yellow.svg" alt="License: MIT" width="82" height="20"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Text-to-Image Generation&lt;/strong&gt;: Create images from text descriptions with AI&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Image Editing&lt;/strong&gt;: Transform existing images using text prompts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real-time Progress Updates&lt;/strong&gt;: Get feedback on generation status&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Browser Integration&lt;/strong&gt;: Automatically open generated images in your default browser&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Tools
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;generateImage&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Generate images based on text prompts with optional image editing&lt;/li&gt;
&lt;li&gt;Inputs:&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;prompt&lt;/code&gt; (string, required): Text description of the desired image&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;imageBase64&lt;/code&gt; (string, optional): Base64-encoded image for editing or style transfer&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Configuration
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Getting an API Key
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Register for an account at &lt;a href="https://4o-image.app/dashboard/" rel="noopener noreferrer"&gt;4o-image.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Obtain your API key from the user dashboard&lt;/li&gt;
&lt;li&gt;Set the API key as an environment variable when running the server&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  Usage with Claude Desktop
&lt;/h3&gt;

&lt;p&gt;Add this to your &lt;code&gt;claude_desktop_config.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"4o-image"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="s2"&gt;"4oimage-mcp"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"YOUR_API_KEY_HERE"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Example Usage
&lt;/h2&gt;

&lt;p&gt;Here's an example of using this MCP server with Claude:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Generate an image of a dog running on the beach at sunset
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude will use the MCP server to generate the image, which will automatically open in your default browser. You'll also get a direct link to the image in Claude's response.&lt;/p&gt;

&lt;p&gt;For image editing, you can include a base image and prompt Claude to modify it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Edit this image to make the sky more dramatic with storm clouds
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  License
&lt;/h2&gt;

&lt;p&gt;This MCP server is licensed under the MIT License. You are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>image</category>
      <category>design</category>
    </item>
    <item>
      <title>Hidden Meaning Translator</title>
      <dc:creator>Antipas Ringer</dc:creator>
      <pubDate>Thu, 13 Mar 2025 10:55:51 +0000</pubDate>
      <link>https://dev.to/antipas_ringer_73b7b1f677/hidden-meaning-translator-5958</link>
      <guid>https://dev.to/antipas_ringer_73b7b1f677/hidden-meaning-translator-5958</guid>
      <description>&lt;p&gt;&lt;a href="https://www.hiddenmeaning.net/" rel="noopener noreferrer"&gt;Hidden Meaning Translator&lt;br&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Confused by what your girlfriend really means? My AI translator intelligently analyzes the subtext, helping you decode the hidden meanings in conversations. Whether it's 'whatever' or 'it's fine,' you'll gain more accurate understanding, avoid communication misunderstandings, and enjoy a more harmonious relationship.&lt;/p&gt;

&lt;p&gt;Designed specifically for emotional intelligence enhancement, Hidden Meaning Translator helps individuals with lower EQ better understand and express emotions. By transforming abstract feelings into intuitive images, it enables you to express yourself more confidently in social settings, build deeper connections, and improve overall quality of life.&lt;/p&gt;

&lt;p&gt;Hidden Meaning Translator employs advanced text-to-art conversion technology that transforms ordinary text into artistically rendered SVG images.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F07kh42o3ghkfbbz5y20x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F07kh42o3ghkfbbz5y20x.png" alt="Image description" width="480" height="650"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
