<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chamotarooo</author_name>
  <author_url>https://blog.hatena.ne.jp/chamotarooo/</author_url>
  <blog_title>chamotaroooのブログ</blog_title>
  <blog_url>https://chamotaro.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>はじめに 前の記事「パスワードの最小文字数は8文字か15文字か」で、bcrypt は72バイトまでしか扱えないと書いた。 書いたあとで、二つのことが気になった。 なぜ72なのか。 72バイトより後ろは、どう扱われているのか。 元祖である OpenBSD の実装のソースコードと、主なライブラリの説明を読んで確かめた。 本記事は2026年10月時点の情報だ。 72はどこから来たのか bcrypt は、パスワードを元に戻せない形に変換して保存するための方式だ。 変換の土台には Blowfish という暗号を使い、パスワードをその暗号の鍵として渡す。1 Blowfish は、暗号化に使う数値を18個の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchamotaro.hatenablog.com%2Fentry%2Ftech%2Fbcrypt-72-byte-truncation&quot; title=&quot;bcrypt はなぜ72バイトより後ろを捨てるのか - chamotaroooのブログ&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>2026-10-09 10:53:05</published>
  <title>bcrypt はなぜ72バイトより後ろを捨てるのか</title>
  <type>rich</type>
  <url>https://chamotaro.hatenablog.com/entry/tech/bcrypt-72-byte-truncation</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
