Skip to content

Argon2 の memory_cost と time_cost の単位の説明を原文に追従 - #497

Merged
KentarouTakeda merged 1 commit into
php:masterfrom
KentarouTakeda:sync-argon2-cost-units
Sep 20, 2026
Merged

KentarouTakeda merged 1 commit into
php:masterfrom
KentarouTakeda:sync-argon2-cost-units

Conversation

@KentarouTakeda

@KentarouTakeda KentarouTakeda commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

php/doc-en@6cc48aed6f (php/doc-en#5219) に追従します。

time_cost を計算にかけてよい時間の上限としていた誤りを修正し、反復回数 (パス数) であることを
明記しました。あわせて PASSWORD_ARGON2_DEFAULT_MEMORY_COST にメモリの単位を、
PASSWORD_BCRYPT_DEFAULT_COST に説明を追加しています。

対象ファイル (2件)

  • reference/password/constants.xml
  • reference/password/functions/password-hash.xml

php/doc-en@6cc48aed6f (php/doc-en#5219) に追従します。

time_cost を「計算にかけてよい時間の最大値」としていた誤りが修正されて反復回数
(パス数) になり、PASSWORD_ARGON2_DEFAULT_MEMORY_COST の単位がキビバイトであることが
明示され、PASSWORD_BCRYPT_DEFAULT_COST に説明が追加されました。

## 対象ファイル (2件)

- reference/password/constants.xml
- reference/password/functions/password-hash.xml
@KentarouTakeda
KentarouTakeda merged commit fea6b8b into php:master Sep 20, 2026
2 checks passed
@KentarouTakeda
KentarouTakeda deleted the sync-argon2-cost-units branch September 20, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant