<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>.NET</anon>
    <anon>.NET Core</anon>
    <anon>.NET Framework</anon>
    <anon>C#</anon>
  </categories>
  <description>以前にデータを AES 暗号化する方法を紹介しましたが、実装例が何らかのデータをアプリのメモリ上に byte 配列として全部に読み取った内容を展開してから AES 暗号化する方法でした。 この方法だと、例えば 1GB のファイルを暗号化しようとすると1GBぶん全てを一度メモリに内容を全て展開することになります。大きいサイズのファイルを暗号化すると場合によって問題が起きます。 なので今回は、ファイルの内容をメモリに展開することなくファイルtoファイルで暗号化、暗号化を解除する方法を紹介したいと思います。 環境 .NET Core 3.1 VisualStudio 2022 Windows11 コ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2022%2F12%2F15%2F002343&quot; title=&quot;【C#】メモリにファイルの内容を展開せずにAESで暗号化する - PG日誌&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>2022-12-15 00:23:43</published>
  <title>【C#】メモリにファイルの内容を展開せずにAESで暗号化する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2022/12/15/002343</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
