<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hogem</author_name>
  <author_url>https://blog.hatena.ne.jp/hogem/</author_url>
  <blog_title>うまいぼうぶろぐ</blog_title>
  <blog_url>https://hogem.hatenablog.com/</blog_url>
  <categories>
    <anon>vim</anon>
  </categories>
  <description>bash -x hoge.sh とやるつもりが、間違ってvim -x hoge.sh と実行したところ暗号化できるオプションだということを知った。一度-x で暗号化したらその後は普通にvimで開けばいい。 $ vim -x hoge.sh 暗号化用のキーを入力してください: ****もしくは、vimでファイルを開いているときに&quot;:set key=passphrase&quot; を入力する。ファイルを復号したい場合は&quot;:set key=&quot; でkeyを指定せずに入力する。 $ file hoge.sh hoge.sh: Vim encrypted file data 3:~/tmp$ xxd hoge.s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhogem.hatenablog.com%2Fentry%2F20121119%2F1353336100&quot; title=&quot;vim でファイルの暗号化 - うまいぼうぶろぐ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-11-19 23:41:40</published>
  <title>vim でファイルの暗号化</title>
  <type>rich</type>
  <url>https://hogem.hatenablog.com/entry/20121119/1353336100</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
