<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fnyablog</author_name>
  <author_url>https://blog.hatena.ne.jp/fnyablog/</author_url>
  <blog_title>あるSEのつぶやき・改</blog_title>
  <blog_url>https://www.aruse.net/</blog_url>
  <categories>
    <anon>Google Apps Script</anon>
    <anon>セキュリティ</anon>
  </categories>
  <description>Google Apps Script で JWT の仕組みを作ろうと思って、HMAC-SHA256 を使用する際の秘密鍵の生成方法と署名方法を調べました。 本当は独自実装なんてしたくないのですが、ないものは仕方ですからね。。 まず HMAC-SHA256 の秘密鍵のサイズなのですが、RCF によるとハッシュのサイズと同じかそれ以上となっています。 SHA256であれば256ビット、32バイトということですね。 key of the same size as the hash output (for instance, 256 bits for &quot;HS256&quot;) or larger MUST b…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.aruse.net%2Fentry%2F2022%2F10%2F15%2F135252&quot; title=&quot;OpenSSLでHMAC-SHA256の秘密鍵を生成し署名する方法 - あるSEのつぶやき・改&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-10-15 13:52:52</published>
  <title>OpenSSLでHMAC-SHA256の秘密鍵を生成し署名する方法</title>
  <type>rich</type>
  <url>https://www.aruse.net/entry/2022/10/15/135252</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
