« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 17 for iterations (0.005 sec.)
hash_pbkdf2 — PBKDF2 を使ってパスワードからキーを生成する | PHP 8.3 12259
hash_pbkdf2 (PHP 5 >= 5.5.0, PHP 7, PHP 8) hash_pbkdf2 — PBKDF2 を使ってパスワードからキーを生成する 説明 function hash_pbkdf2 ( string $algo , #[ \SensitiveParameter ] string $password , string $salt , int $iterations , int $length = 0 , b ... ッシュ関数は許可されません。 password 導出に使うパスワード salt 導出に使うソルト。ランダムに生成した値でなければいけません。 iterations 導出の実行の際の内部の反復回数 length 出力する文字列の長さ。 binary が true の場合、これは導出鍵のバイト長になります。 bin ... 列が返されます。 binary が true の場合、導出鍵の生のバイナリ表現が返されます。 エラー / 例外 アルゴリズムが未知である場合、 iterations パラメータが 0 以下である場合、 length が 0 よりも小さい場合、 salt が長すぎる場合 ( INT_MAX - 4 よりも大きい) に、 ValueE ... , fnv164, fnv1a64, joaat) は使えなくなりました。 例 例1 hash_pbkdf2() の基本的な使い方の例 <?php $password = "password" ; $iterations = 600000 ; // Generate a cryptographically secure random salt using random_bytes() $salt = random_bytes ( 16 ); $hash = ha ...
https://man.mtool.work/php/8.3/function.hash-pbkdf2.html
openssl_pbkdf2 — PKCS5 v2 の PBKDF2 文字列を生成する | PHP 8.3 11414
openssl_pbkdf2 (PHP 5 >= 5.5.0, PHP 7, PHP 8) openssl_pbkdf2 — PKCS5 v2 の PBKDF2 文字列を生成する 説明 function openssl_pbkdf2 ( #[ \SensitiveParameter ] string $password , string $salt , int $key_length , int $iterations , string $digest_ ... ワード salt PBKDF2 は、暗号化のソルトとして、少なくとも128ビット(16バイト)を推奨しています。 key_length 出力されるキーの長さ iterations 反復回数。 » NIST は最低でも1000を推奨 しています。 2023 年の時点で、OWASP は PBKDF2-HMAC-SHA256 に対して 600,000 回、 PBK ... 例 例1 openssl_pbkdf2() の例 <?php $password = 'password' ; $salt = openssl_random_pseudo_bytes ( 16 ); $keyLength = 20 ; $iterations = 600000 ; $generated_key = openssl_pbkdf2 ( $password , $salt , $keyLength , $iterations , 'sha256' ); echo bin2hex ( $ge ...
https://man.mtool.work/php/8.3/function.openssl-pbkdf2.html
Gmagick::setimageiterations — 画像の反復を設定する | PHP 8.3 10414
Gmagick::setimageiterations (PECL gmagick >= Unknown) Gmagick::setimageiterations — 画像の反復を設定する 説明 public function Gmagick::setimageiterations ( int $iterations ): Gmagick 画像の反復を設定します。 パラメータ iterations 画像の遅延 ...
https://man.mtool.work/php/8.3/gmagick.setimageiterations.html
Imagick::setImageIterations — 画像の反復を設定する | PHP 8.3 9862
Imagick::setImageIterations (PECL imagick 2, PECL imagick 3) Imagick::setImageIterations — 画像の反復を設定する 説明 public function Imagick::setImageIterations ( int $iterations ): bool アニメーション画像の繰り返し回数を設定します。 パラメ ... ータ iterations 画像をループさせる回数。'0' を指定すると、ずっとループし続けます。 戻り値 成功した場合に true を返します。 エラー / 例外 エ ... ラー時に ImagickException をスローします。 例 例1 基本的な Imagick::setImageIterations() の使用例 <?php $imagick = new Imagick ( realpath ( "Test.gif" )); $imagick = $imagick -> coalesceImages (); $imagick -> ... setImageIterations ( 1 ); $imagick = $imagick -> deconstructImages (); $imagick -> writeImages ( '/path/to/save/OnceOnly.gif' , true ); ?> 他 ...
https://man.mtool.work/php/8.3/imagick.setimageiterations.html
EvTimer::__construct — Constructs an EvTimer watcher object | PHP 8.3 9707
EvTimer::__construct (PECL ev >= 0.2.0) EvTimer::__construct — Constructs an EvTimer watcher object 説明 public function EvTimer::__construct ( float $after , float $repeat , callable $callback , mixed $data = null , int $priority = 0 ) Con ... y second, is launched after 2 seconds\n" ; echo "iteration = " , Ev :: iteration (), PHP_EOL ; // Stop the watcher after 5 iterations Ev :: iteration () == 5 and $w -> stop (); // Stop the watcher if further calls cause more than 10 iterations Ev :: iterat ... :: createStopped ( 10 , 5 , function( $w ) { echo "Callback of a timer created as stopped\n" ; // Stop the watcher after 2 iterations Ev :: iteration () >= 2 and $w -> stop (); }); // Loop until Ev::stop() is called or all of watchers stop Ev :: run (); // ...
https://man.mtool.work/php/8.3/evtimer.construct.html
Ds\Deque::reduce — Reduces the deque to a single value using a callback functio... 9017
Ds\Deque::reduce (PECL ds >= 1.0.0) Ds\Deque::reduce — Reduces the deque to a single value using a callback function 説明 public function Ds\Deque::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the deque to a single valu ... ; $callback = function( $carry , $value ) { return $carry * $value ; }; var_dump ( $deque -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 // $carry = $carry * 3 = 30 ?> 上の ... \Ds\Deque ([ 1 , 2 , 3 ]); var_dump ( $deque -> reduce (function( $carry , $value ) { return $carry + $value + 5 ; })); // Iterations: // // $carry = $initial = null // // $carry = $carry + 1 + 5 = 6 // $carry = $carry + 2 + 5 = 13 // $carry = $carry + 3 + ...
https://man.mtool.work/php/8.3/ds-deque.reduce.html
Ds\Sequence::reduce — Reduces the sequence to a single value using a callback f... 9017
Ds\Sequence::reduce (PECL ds >= 1.0.0) Ds\Sequence::reduce — Reduces the sequence to a single value using a callback function 説明 abstract public function Ds\Sequence::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the s ... callback = function( $carry , $value ) { return $carry * $value ; }; var_dump ( $sequence -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 // $carry = $carry * 3 = 30 ?> 上の ... Vector ([ 1 , 2 , 3 ]); var_dump ( $sequence -> reduce (function( $carry , $value ) { return $carry + $value + 5 ; })); // Iterations: // // $carry = $initial = null // // $carry = $carry + 1 + 5 = 6 // $carry = $carry + 2 + 5 = 13 // $carry = $carry + 3 + ...
https://man.mtool.work/php/8.3/ds-sequence.reduce.html
Ds\Set::reduce — Reduces the set to a single value using a callback function | ... 9017
Ds\Set::reduce (PECL ds >= 1.0.0) Ds\Set::reduce — Reduces the set to a single value using a callback function 説明 public function Ds\Set::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the set to a single value using a ... ]); $callback = function( $carry , $value ) { return $carry * $value ; }; var_dump ( $set -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 // $carry = $carry * 3 = 30 ?> 上の ... new \Ds\Set ([ 1 , 2 , 3 ]); var_dump ( $set -> reduce (function( $carry , $value ) { return $carry + $value + 5 ; })); // Iterations: // // $carry = $initial = null // // $carry = $carry + 1 + 5 = 6 // $carry = $carry + 2 + 5 = 13 // $carry = $carry + 3 + ...
https://man.mtool.work/php/8.3/ds-set.reduce.html
Ds\Vector::reduce — Reduces the vector to a single value using a callback funct... 9017
Ds\Vector::reduce (PECL ds >= 1.0.0) Ds\Vector::reduce — Reduces the vector to a single value using a callback function 説明 public function Ds\Vector::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the vector to a single ... $callback = function( $carry , $value ) { return $carry * $value ; }; var_dump ( $vector -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 // $carry = $carry * 3 = 30 ?> 上の ... s\Vector ([ 1 , 2 , 3 ]); var_dump ( $vector -> reduce (function( $carry , $value ) { return $carry + $value + 5 ; })); // Iterations: // // $carry = $initial = null // // $carry = $carry + 1 + 5 = 6 // $carry = $carry + 2 + 5 = 13 // $carry = $carry + 3 + ...
https://man.mtool.work/php/8.3/ds-vector.reduce.html
Ds\Map::reduce — Reduces the map to a single value using a callback function | ... 8862
Ds\Map::reduce (PECL ds >= 1.0.0) Ds\Map::reduce — Reduces the map to a single value using a callback function 説明 public function Ds\Map::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the map to a single value using a ... llback = function( $carry , $key , $value ) { return $carry * $value ; }; var_dump ( $map -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 // $carry = $carry * 3 = 30 ?> 上の ... " => 2 , "c" => 3 ]); var_dump ( $map -> reduce (function( $carry , $key , $value ) { return $carry + $value + 5 ; })); // Iterations: // // $carry = $initial = null // // $carry = $carry + 1 + 5 = 6 // $carry = $carry + 2 + 5 = 13 // $carry = $carry + 3 + ...
https://man.mtool.work/php/8.3/ds-map.reduce.html
PREV 1 2 NEXT