<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Megumi221</author_name>
  <author_url>https://blog.hatena.ne.jp/Megumi221/</author_url>
  <blog_title>理想のユーザ・インターフェイスを求めて</blog_title>
  <blog_url>https://ideal-user-interface.hatenablog.com/</blog_url>
  <categories>
    <anon>メモ</anon>
  </categories>
  <description>先週に引き続き、日経ソフトウェア2009年12月号の特別付録『かんたん10分プログラミングレシピ』から、今日は”ファイルの中身の暗号化”のPython版を検討する。 http://itpro.nikkeibp.co.jp/article/COLUMN/20060131/228211/ 寝る前に30分くらいで簡単にできるかと思ったら、ハマッてしまった。己の未熟さを痛感する。 暗号化のロジックとしては、読み込んだファイルの内容をバイト列と見なして、１が連続する同じ長さのバイト列との排他的論理和をとるだけ。非常にシンプルだ。得られたバイト列をファイルに書き出して、暗号化されたファイルとする。復号する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fideal-user-interface.hatenablog.com%2Fentry%2F20091124%2F1259154466&quot; title=&quot;　ファイルの中身を暗号化する→文字列をビット演算するには？ - 理想のユーザ・インターフェイスを求めて&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>2009-11-24 22:07:46</published>
  <title>　ファイルの中身を暗号化する→文字列をビット演算するには？</title>
  <type>rich</type>
  <url>https://ideal-user-interface.hatenablog.com/entry/20091124/1259154466</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
