Document argon2 installation with OpenSSL in PHP 8.4 を取り込み #249
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
refs #150
php/doc-en#4272 を取り込みました。パスワードのハッシュアルゴリズムに Argon2 を使いたい場合に、PHP をどのようにビルドすればよいかが変わったようです。
翻訳
英文では "as of PHP 8.4.0" のような節がカンマ区切りで割り込んできていますが、日本語でこれを再現すると非常に読みづらいので、いくつか言葉を補った上で文を区切っています。
→ Argon2 パスワードハッシュには、
libargon2が必要です。PHP 8.4.0 以降では、libargon2 の代わりに OpenSSL のバージョン 3.2 以降を使うこともできます。→ libargon2 を使う場合、PHP 7.3.0 以降では libargon2 バージョン 20161029 以降が必要になります。
→ ただし、Argon2 パスワードハッシュを有効にするには、
--with-password-argon2オプションを使用し libargon2 のサポートを有効にして PHP をビルドする必要があります。PHP 8.4.0 以降で libargon2 の代わりに OpenSSL を使う場合、--with-opensslオプションを使用し OpenSSL を有効にして PHP をビルドする必要があります。