Skip to content

Conversation

@nsfisis
Copy link
Contributor

@nsfisis nsfisis commented Jan 13, 2025

refs #150

php/doc-en#4272 を取り込みました。パスワードのハッシュアルゴリズムに Argon2 を使いたい場合に、PHP をどのようにビルドすればよいかが変わったようです。

翻訳

英文では "as of PHP 8.4.0" のような節がカンマ区切りで割り込んできていますが、日本語でこれを再現すると非常に読みづらいので、いくつか言葉を補った上で文を区切っています。

For Argon2 password hashing, either libargon2 is required or, as of PHP 8.4.0, OpenSSL version 3.2 or later.

→ Argon2 パスワードハッシュには、libargon2 が必要です。PHP 8.4.0 以降では、libargon2 の代わりに OpenSSL のバージョン 3.2 以降を使うこともできます。

As of PHP 7.3.0, libargon2 version 20161029 or later is required if libargon2 is used.

→ libargon2 を使う場合、PHP 7.3.0 以降では libargon2 バージョン 20161029 以降が必要になります。

However, to enable Argon2 password hashing, PHP must be built either with libargon2 support using the --with-password-argon2 configure option or, starting from PHP 8.4.0, with OpenSSL using --with-openssl.

→ ただし、Argon2 パスワードハッシュを有効にするには、--with-password-argon2 オプションを使用し libargon2 のサポートを有効にして PHP をビルドする必要があります。PHP 8.4.0 以降で libargon2 の代わりに OpenSSL を使う場合、--with-openssl オプションを使用し OpenSSL を有効にして PHP をビルドする必要があります。

Copy link
Collaborator

@KentarouTakeda KentarouTakeda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!
とても読みやすいです。

@KentarouTakeda KentarouTakeda merged commit d253650 into php:master Jan 19, 2025
2 checks passed
@nsfisis nsfisis deleted the feature/4272-argon2 branch January 19, 2025 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants