保存した内容は同じ?SHA-256で文字列と改行を比較するの確認画面
2026年11月1日。自作例を実際に操作した画面。 タップして拡大できます。

const bytes = new TextEncoder().encode(text);
const buffer = await crypto.subtle.digest('SHA-256', bytes);
const hex = Array.from(new Uint8Array(buffer),
  b => b.toString(16).padStart(2, '0')).join('');