« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 14 for Blowfish (0.002 sec.)
crypt — 文字列の一方向のハッシュ化を行う | PHP 8.3 12953
crypt (PHP 4, PHP 5, PHP 7, PHP 8) crypt — 文字列の一方向のハッシュ化を行う 警告 この関数は (まだ)バイナリデータ対応ではありません! 説明 function crypt ( #[ \SensitiveParameter ] string $string , string $salt ): string crypt() は、文字列のハ ... salt に無効な文字を使うと crypt() は失敗します。 CRYPT_MD5 - $1$ ではじまる 12 文字の salt を使用する MD5 ハッシュ。 CRYPT_BLOWFISH - Blowfish ハッシュ。salt の形式は、 "$2a$" か "$2x$" あるいは "$2y$"、2 桁のコストパラメータ、"$"、そして文字 "./0-9A-Za- ... 文字を salt に使うと、crypt() は長さゼロの文字列を返します。 2 桁のコストパラメータは反復回数の 2 を底とする対数で、 これは Blowfish ベースのハッシュアルゴリズムで使います。 この値は 04 から 31 までの範囲でなければならず、 それ以外の値の場合は crypt() は失 ... salt を組み合わせたもの。salt 文字列が 'rounds=<N>$' で始まる場合は、数値 N がハッシュループの実行回数を表します。 これは Blowfish のコストパラメータのようなものです。 rounds のデフォルトは 5000 で、1000 から 999,999,999 までの値を指定できます。 この範囲 ...
https://man.mtool.work/php/8.3/function.crypt.html
暗号化フィルタ | PHP 8.3 11868
暗号化フィルタ 暗号化フィルタは、ファイル/ストリーム を暗号化する場合に特に有用です。 mcrypt.* と mdecrypt.* 警告 この機能は PHP 7.1.0 で 非推奨 になります。この機能に頼らないことを強く推奨します。 mcrypt.* と mdecrypt.* は、libmcrypt を用い ... バイナリデータ。暗号の形式に依存する key 必須 N/A 通常は 8, 16, あるいは 32 バイトのバイナリデータ。暗号の形式に依存する 例1 Blowfish を用いた 暗号化/復号化 <?php //$key は、ここより以前で生成されているものとする $iv_size = mcrypt_get_iv_size ( MCRYPT_BLOW ... fwrite ( $fp , $iv ); $opts = array( 'mode' => 'cbc' , 'iv' => $iv , 'key' => $key ); stream_filter_append ( $fp , 'mcrypt.blowfish' , STREAM_FILTER_WRITE , $opts ); fwrite ( $fp , 'message to encrypt' ); fclose ( $fp ); // 復号化する... $fp = fopen ( 'e ... ncrypted-file.enc' , 'rb' ); $iv = fread ( $fp , $iv_size = mcrypt_get_iv_size ( MCRYPT_BLOWFISH , MCRYPT_MODE_CBC )); $opts = array( 'mode' => 'cbc' , 'iv' => $iv , 'key' => $key ); stream_filter_append ( $fp , 'mdecry ...
https://man.mtool.work/php/8.3/filters.encryption.html
mcrypt_list_algorithms — サポートされる全ての暗号を配列として取得する | PHP 8.3 10783
mcrypt_list_algorithms (PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0) mcrypt_list_algorithms — サポートされる全ての暗号を配列として取得する 警告 この関数は PHP 7.1.0 で 非推奨 となり、PHP 7.2.0 で 削除 されました。この関数に頼 ... l-128 [3] => twofish [4] => arcfour [5] => cast-256 [6] => loki97 [7] => rijndael-192 [8] => saferplus [9] => wake [10] => blowfish-compat [11] => des [12] => rijndael-256 [13] => serpent [14] => xtea [15] => blowfish [16] => enigma [17] => rc2 [18] => t ...
https://man.mtool.work/php/8.3/function.mcrypt-list-algorithms.html
定義済み定数 | PHP 8.3 9032
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 Xpass extension provides various set of constants. Hash methods ( CRYPT_PREFI ... 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-expensive key schedule. Originally develop ...
https://man.mtool.work/php/8.3/xpass.constants.html
crypt_gensalt — Compile a string for use as the salt argument to crypt | PHP 8.... 8612
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 ... null in case of an error. 例 例1 A crypt_gensalt() example <?php // Generate the salt $salt = crypt_gensalt ( CRYPT_PREFIX_BLOWFISH ); // Hash the password $hash = crypt ( "secret" , $salt ); // Check the hash $test = hash_equals ( crypt ( "secret" , $ha ...
https://man.mtool.work/php/8.3/function.crypt-gensalt.html
定義済み定数 | PHP 8.3 8384
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 CRYPT_SALT_LENGTH ( int ) CRYPT_STD_DES ( int ) 標準のDESベースのハッシュが c ... は常に 1 です。 CRYPT_MD5 ( int ) MD5ハッシュが crypt() 関数でサポートされているかどうかを示します。 値は常に 1 です。 CRYPT_BLOWFISH ( int ) Blowfishハッシュが crypt() 関数でサポートされているかどうかを示します。 値は常に 1 です。 CRYPT_SHA256 ( int ) SHA ...
https://man.mtool.work/php/8.3/string.constants.html
rnp_op_encrypt — Encrypt message | PHP 8.3 8174
rnp_op_encrypt (PECL rnp >= 0.1.1) rnp_op_encrypt — Encrypt message 説明 function rnp_op_encrypt ( RnpFFI $ffi , string $message , array $recipient_keys_fp , array $options = ? ): string | false パラメータ ffi The FFI object returned by rnp ... ed to encrypt data. "cipher" string Set symmetric encryption algorithm. Possible values are "IDEA", "TRIPLEDES", "CAST5", "BLOWFISH", "AES128", "AES192", "AES256", "TWOFISH", "CAMELLIA128", "CAMELLIA192", "CAMELLIA256", "SM4". "aead" string Set AEAD mode ...
https://man.mtool.work/php/8.3/function.rnp-op-encrypt.html
hash_pbkdf2 — PBKDF2 を使ってパスワードからキーを生成する | PHP 8.3 7737
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 ... 告 PBKDF2 による方法はパスワードのハッシュを保存するために使うことができます。 しかし、 password_hash() や crypt() で CRYPT_BLOWFISH を使うのほうが、パスワードの保存に適しています。 参考 password_hash() - パスワードハッシュを作る hash_hkdf() - 与えられたキ ...
https://man.mtool.work/php/8.3/function.hash-pbkdf2.html
Mcrypt 暗号 | PHP 8.3 7737
Mcrypt 暗号 以下に、mcrypt 拡張モジュールにより現在サポートされている暗号のリストを 示します。サポートされる暗号の完全なリストについては、 mcrypt.h の最後にある define を参照ください。 mcrypt-2.2.x API に関する一般的な規則は、 MCRYPT_暗号名 ... 定することも可能です。 MCRYPT_3DES MCRYPT_ARCFOUR_IV (libmcrypt > 2.4.x のみ) MCRYPT_ARCFOUR (libmcrypt > 2.4.x のみ) MCRYPT_BLOWFISH MCRYPT_CAST_128 MCRYPT_CAST_256 MCRYPT_CRYPT MCRYPT_DES MCRYPT_DES_COMPAT (libmcrypt 2.2.x のみ) MCRYPT_ENIGMA (libmcrypt ...
https://man.mtool.work/php/8.3/mcrypt.ciphers.html
Mcrypt | PHP 8.3 7509
Mcrypt はじめに 警告 この機能は PHP 7.1.0 で 非推奨 となり、 PHP 7.2.0 で 削除 されました。 この機能の代替として、これらが使えます。 Sodium (PHP 7.2.0から利用可能) OpenSSL 注意 : この拡張モジュールは » PECL レポジトリに移動 されており、以下 ... のバージョン以降 PHP にバンドルされなくなっています。 PHP 7.2.0. この関数は、CBC, OFB, CFB, ECB 暗号モードの DES, TripleDES, Blowfish (デフォルト), 3-WAY, SAFER-SK64, SAFER-SK128, TWOFISH, TEA, RC2 , GOST のような広範なブロックアルゴリズムをサポートする mc ...
https://man.mtool.work/php/8.3/book.mcrypt.html
PREV 1 2 NEXT