<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>winebarrel</author_name>
  <author_url>https://blog.hatena.ne.jp/winebarrel/</author_url>
  <blog_title>so what</blog_title>
  <blog_url>https://so-wh.at/</blog_url>
  <categories>
  </categories>
  <description>Claude Codeに読まれたくないディレクトリがあって、うっかり読み込まれたらいやなのでディレクトリ単位で暗号化できないか…ということをClaudeに相談したら「暗号化イメージを使うとよいのではないか」と提案されたのでやってみた。 まずディスクユーティリティを起動し、「ファイル &gt; 新規イメージ &gt; フォルダからのイメージ作成」を選択。 対象ディレクトリを選択して、256ビットAES+Appleスパースイメージでイメージを作成する。 「保存」を押すとパスワードを聞かれる。 そのままだとすぐに容量が埋まるので「イメージ &gt; サイズ変更」から増量しておく。 作成したイメージを適当な場所に置いて…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F2026%2F03%2F22%2F191553&quot; title=&quot;Claude Codeに読まれたくないディレクトリを暗号化イメージに隔離する - so what&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/w/winebarrel/20260322/20260322185845.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-03-22 19:15:53</published>
  <title>Claude Codeに読まれたくないディレクトリを暗号化イメージに隔離する</title>
  <type>rich</type>
  <url>https://so-wh.at/entry/2026/03/22/191553</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
