« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 18 for cost (0.002 sec.)
grapheme_levenshtein — 二つの文字列のレーベンシュタイン距離を書記素単位で計算す... 13126
grapheme_levenshtein (PHP 8 >= 8.5.0) grapheme_levenshtein — 二つの文字列のレーベンシュタイン距離を書記素単位で計算する 説明 手続き型 function grapheme_levenshtein ( string $string1 , string $string2 , int $insertion_cost = 1 , int $replace ... ment_cost = 1 , int $deletion_cost = 1 , string $locale = "" ): int | false レーベンシュタイン距離は、 string1 を string2 に変換する ... 形式 (たとえば U+00E9 と U+0065 U+0301 は、どちらも é を表します) は等価なものとして扱われ、距離はゼロになります。 insertion_cost 、 replacement_cost かつ/または deletion_cost が 1 以外の場合、 アルゴリズムは最もコストの小さい変換を選ぶように動作します ... 。 たとえば、 $insertion_cost + $deletion_cost < $replacement_cost の場合、 置換をせず、挿入と削除が行われます。 パラメータ string1 レーベンシュタイン距 ...
https://man.mtool.work/php/8.3/function.grapheme-levenshtein.html
levenshtein — 二つの文字列のレーベンシュタイン距離を計算する | PHP 8.3 12027
levenshtein (PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8) levenshtein — 二つの文字列のレーベンシュタイン距離を計算する 説明 function levenshtein ( string $string1 , string $string2 , int $insertion_cost = 1 , int $replacement_cost = 1 , int $deleti ... on_cost = 1 ): int レーベンシュタイン距離は、 string1 を string2 に変換するために置換、挿入、削除 しなければならない最小の文字数と ... g1 および string2 の長さです。 O(max(n,m)**3) となる similar_text() よりは良いですが、 まだかなりの計算量です)。 insertion_cost , replacement_cost かつ/または deletion_cost が 1 以外の場合、 変換コストが最も小さいアルゴリズムを採用します。 たとえば、 ... $insertion_cost + $deletion_cost < $replacement_cost の場合、 置換をせず、挿入と削除が行われます。 パラメータ string1 レーベンシュタイン距 ...
https://man.mtool.work/php/8.3/function.levenshtein.html
password_hash — パスワードハッシュを作る | PHP 8.3 10500
password_hash (PHP 5 >= 5.5.0, PHP 7, PHP 8) password_hash — パスワードハッシュを作る 説明 function password_hash ( #[ \SensitiveParameter ] string $password , string | int | null $algo , array $options = [] ): string password_hash() は、 強 ... 指定せずに、デフォルトで生成されるソルトを使うことを推奨します。 PHP 8.0.0 以降は、この値を明示的に指定しても無視されます。 cost ( int ) - 利用するアルゴリズムのコストを表します。 値の例については crypt() のページを参照ください。 省略した場合のデフォル ... ませんが、 ハードウェアの性能に応じて調整すべきです。 PASSWORD_ARGON2I と PASSWORD_ARGON2ID が サポートするオプション memory_cost ( int ) - Argon2 ハッシュを計算するのに 使われるメモリの最大値 (KiB 単位)。 デフォルトは PASSWORD_ARGON2_DEFAULT_MEMORY_CO ... ST です。 time_cost ( int ) - Argon2 ハッシュを計算する際の 反復回数 (パス数)。 デフォルトは PASSWORD_ARGON2_DEFAULT_TIME_COST です。 threads ...
https://man.mtool.work/php/8.3/function.password-hash.html
定義済み定数 | PHP 8.3 9917
定義済み定数 以下の定数は、PHP コアに含まれており、常に利用可能です。 PASSWORD_BCRYPT ( string ) PASSWORD_BCRYPT を使うと、 CRYPT_BLOWFISH アルゴリズムで新たなパスワードハッシュを作ります。 これは常に、"$2y$" crypt フォーマットを使ったハッシ ... ルトを自動生成します。これは意図したとおりの操作モードです。 および PHP 7.0.0 以降でソルト・オプションは非推奨になりました。 cost ( int ) - 利用するアルゴリズムのコストを表します。 値の例については crypt() のページを参照ください。 省略した場合のデフォル ... は 12 です。この値でもかまいませんが、 ハードウェアの性能が許すならもう少し高くすることもできます。 PASSWORD_BCRYPT_DEFAULT_COST ( int ) PASSWORD_BCRYPT でパスワードをハッシュするときに password_hash() が使う、デフォルトのアルゴリズムのコスト。 PHP 7. ... ing ) PASSWORD_ARGON2I を使うと、 Argon2i アルゴリズムで新たなパスワードハッシュを作ります。 サポートするオプション memory_cost ( int ) - Argon2 ハッシュの計算に用いるメモリの最大値 (KiB 単位) を設定します。 デフォルトは PASSWORD_ARGON2_DEFAULT_MEMOR ...
https://man.mtool.work/php/8.3/password.constants.html
定義済み定数 | PHP 8.3 9162
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 Xpass extension provides various set of constants. Hash methods ( CRYPT_PREFI ... ( string ) An extension of traditional DES, which eliminates the length limit, increases the salt size, and makes the time cost tunable. It originates with BSDI BSD/OS and is also available on at least NetBSD, OpenBSD, and FreeBSD due to the use of D ... s the DES-based hashes below, but MD5 is so cheap on modern hardware that it should not be used for new hashes. Processing cost is not adjustable. CRYPT_PREFIX_BLOWFISH ( string ) A hash based on the Blowfish block cipher, modified to have an extra-e ... lrich Drepper for GNU libc. Supported on Linux but not common elsewhere. Acceptable for new hashes. The default processing cost parameter is 5000 , which is too low for modern hardware. CRYPT_PREFIX_SHA512 ( string ) A hash based on SHA-2 with 512-bi ...
https://man.mtool.work/php/8.3/xpass.constants.html
openssl_password_hash — OpenSSL の Argon2 実装を使ってパスワードハッシュを作る ... 8870
openssl_password_hash (PHP 8 >= 8.4.0) openssl_password_hash — OpenSSL の Argon2 実装を使ってパスワードハッシュを作る 説明 function openssl_password_hash ( string $algo , #[ \SensitiveParameter ] string $password , array $options = [] ): st ... です。 password ユーザーのパスワード。 options オプションの連想配列 ( array )。サポートされるキーは以下のとおりです: memory_cost - ハッシュの計算に使用する 最大メモリ量 (KiB 単位) time_cost - ハッシュの計算にかける 最大時間 threads - ハッシュの計算に使 ... を指定した openssl_password_hash() の例 <?php $hash = openssl_password_hash ( 'argon2id' , 'my-secret-password' , [ 'memory_cost' => 65536 , 'time_cost' => 4 , 'threads' => 1 , ]); ?> 参考 openssl_password_verify() - OpenSSL の Argon2 実装を用いてパス ...
https://man.mtool.work/php/8.3/function.openssl-password-hash.html
LuaSandbox::getProfilerFunctionReport — Fetch profiler data | PHP 8.3 8287
LuaSandbox::getProfilerFunctionReport (PECL luasandbox >= 1.1.0) LuaSandbox::getProfilerFunctionReport — Fetch profiler data 説明 public function LuaSandbox::getProfilerFunctionReport ( int $units = LuaSandbox::SECONDS ): array For a profil ... ing instance previously started by LuaSandbox::enableProfiler() , get a report of the cost of each function. The measurement unit used for the cost is determined by the $units parameter: LuaSandbox::SAMPLES Measur ...
https://man.mtool.work/php/8.3/luasandbox.getprofilerfunctionreport.html
crypt_gensalt — Compile a string for use as the salt argument to crypt | PHP 8.... 8167
crypt_gensalt (PECL xpass >= 1.1.0) crypt_gensalt — Compile a string for use as the salt argument to crypt 説明 function crypt_gensalt ( string $prefix = null , int $count = 0 ): ? string Compile a string for use as the salt argument to cry ... the CRYPT_PREFIX_ * constant. If null , the best available hashing method will be selected. count Controls the processing cost of the hash; the valid range and exact meaning of count depend on the hashing method, but larger numbers correspond to mor ... e costly hashes in terms of CPU time and possibly memory usage. If count is 0 , a low default cost will be selected. 戻り値 Retur ...
https://man.mtool.work/php/8.3/function.crypt-gensalt.html
password_needs_rehash — 指定したハッシュがオプションにマッチするかどうかを調べ... 7875
password_needs_rehash (PHP 5 >= 5.5.0, PHP 7, PHP 8) password_needs_rehash — 指定したハッシュがオプションにマッチするかどうかを調べる 説明 function password_needs_rehash ( string $hash , string | int | null $algo , array $options = [] ): bo ... rf' ; $hash = '$2y$12$4Umg0rCJwMswRw/l.SwHvuQV01coP0eWmGzd61QH2RvAOMANUBGC.' ; $algorithm = PASSWORD_BCRYPT ; // bcrypt の cost パラメータは、ハードウェアの性能の向上にあわせて変えることができます $options = [ 'cost' => 13 ]; // 格納されたハッシュを、 ...
https://man.mtool.work/php/8.3/function.password-needs-rehash.html
新しいグローバル定数 | PHP 8.3 7824
新しいグローバル定数 PHP コア PHP_FLOAT_DIG PHP_FLOAT_EPSILON PHP_FLOAT_MIN PHP_FLOAT_MAX PHP_OS_FAMILY ファイル情報 FILEINFO_EXTENSION JSON JSON_INVALID_UTF8_IGNORE JSON_INVALID_UTF8_SUBSTITUTE GD IMG_EFFECT_MULTIPLY IMG_BMP LDAP LDAP_EXOP ... D LDAP_EXOP_REFRESH LDAP_EXOP_WHO_AM_I LDAP_EXOP_TURN パスワードのハッシュ PASSWORD_ARGON2I PASSWORD_ARGON2_DEFAULT_MEMORY_COST PASSWORD_ARGON2_DEFAULT_TIME_COST PASSWORD_ARGON2_DEFAULT_THREADS PCRE PREG_UNMATCHED_AS_NULL PDO PDO::PARAM_STR_NATL PDO: ...
https://man.mtool.work/php/8.3/migration72.constants.html
PREV 1 2 NEXT