<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kouki_dan</author_name>
  <author_url>https://blog.hatena.ne.jp/kouki_dan/</author_url>
  <blog_title>Lento con forza</blog_title>
  <blog_url>https://kouki.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>eyJから始まる文字列を見たら https://jwt.io/ を開きたくなる id:kouki_dan です、こんにちは。 この記事ははてなエンジニア Advent Calendar 2024の8日目の記事です。 さて、JWTといえば、eyJから始まる文字列です。なぜかというと、JWTはJSON文字列のBase64URLエンコードを元に作られていて、JSONの最初の３文字になりがちな {&quot;(a-zA-Z)は、どれもBase64エンコードするとeyJから始まる文字列になるからですね。 % echo &quot;{\&quot;a&quot; | base64 eyJhCg== % echo &quot;{\&quot;z&quot; | base64 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkouki.hatenadiary.com%2Fentry%2Fhatena-advent-calendar-2024&quot; title=&quot;eyJから始まらないJWTを作りたい - Lento con forza&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/k/kouki_dan/20241202/20241202153446.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-12-08 00:00:00</published>
  <title>eyJから始まらないJWTを作りたい</title>
  <type>rich</type>
  <url>https://kouki.hatenadiary.com/entry/hatena-advent-calendar-2024</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
