« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 10 for priv (0.002 sec.)
array_udiff_assoc — データの比較にコールバック関数を用い、 追加された添字の確認... 12317
array_udiff_assoc (PHP 5, PHP 7, PHP 8) array_udiff_assoc — データの比較にコールバック関数を用い、 追加された添字の確認を含めて配列の差を計算する 説明 function array_udiff_assoc ( array $array , array ...$arrays , callable $value_compare_fu ... rray_diff_assoc() は反対の動作、つまり 内部関数を利用した比較を行います。 例 例1 array_udiff_assoc() の例 <?php class cr { private $priv_member ; function __construct ( $val ) { $this -> priv_member = $val ; } static function comp_func_cr ( $a , $b ) ... { if ( $a -> priv_member === $b -> priv_member ) return 0 ; return ( $a -> priv_member > $b -> priv_member )? 1 :- 1 ; } } $a = array( "0.1" ... $b , array( "cr" , "comp_func_cr" )); print_r ( $result ); ?> 上の例の出力は以下となります。 Array ( [0.1] => cr Object ( [priv_member:cr:private] => 9 ) [0.5] => cr Object ( [priv_member:cr:private] => 12 ) [0] => cr Object ( [priv_member:cr:private ...
https://man.mtool.work/php/8.3/function.array-udiff-assoc.html
array_udiff_uassoc — データと添字の比較にコールバック関数を用い、 追加された添... 12210
array_udiff_uassoc (PHP 5, PHP 7, PHP 8) array_udiff_uassoc — データと添字の比較にコールバック関数を用い、 追加された添字の確認を含めて配列の差を計算する 説明 function array_udiff_uassoc ( array $array , array ...$arrays , callable $value_c ... array から他の引数の配列の中に現れない全ての 値を含む array を返します。 例 例1 array_udiff_uassoc() の例 <?php class cr { private $priv_member ; function __construct ( $val ) { $this -> priv_member = $val ; } static function comp_func_cr ( $a , $b ) ... { if ( $a -> priv_member === $b -> priv_member ) return 0 ; return ( $a -> priv_member > $b -> priv_member )? 1 :- 1 ; } static function com ... ), array( "cr" , "comp_func_key" )); print_r ( $result ); ?> 上の例の出力は以下となります。 Array ( [0.1] => cr Object ( [priv_member:cr:private] => 9 ) [0.5] => cr Object ( [priv_member:cr:private] => 12 ) [0] => cr Object ( [priv_member:cr:private ...
https://man.mtool.work/php/8.3/function.array-udiff-uassoc.html
openssl_pkey_get_details — キーの詳細の配列を返す | PHP 8.3 9260
openssl_pkey_get_details (PHP 5 >= 5.2.0, PHP 7, PHP 8) openssl_pkey_get_details — キーの詳細の配列を返す 説明 function openssl_pkey_get_details ( OpenSSLAsymmetricKey $key ): array | false この関数は、キーの詳細 (bits, key, type) を返します ... ENSSL_KEYTYPE_RSA の場合は "rsa" というキーがあり、キーのデータが返されます。 Key 説明 "n" modulus "e" public exponent "d" private exponent "p" prime 1 "q" prime 2 "dmp1" exponent1, d mod (p-1) "dmq1" exponent2, d mod (q-1) "iqmp" coefficient, (inver ... が返されます。 Key 説明 "p" prime number (public) "q" 160-bit subprime, q | p-1 (public) "g" generator of subgroup (public) "priv_key" private key x "pub_key" public key y = g^x OPENSSL_KEYTYPE_DH の場合は "dh" というキーがあり、キーのデータが返されます ... 。 Key 説明 "p" prime number (shared) "g" generator of Z_p (shared) "priv_key" private DH value x "pub_key" public DH value g^x OPENSSL_KEYTYPE_X25519 , OPENSSL_KEYTYPE_ED25519 , OPENSSL_KEYTYPE_X ...
https://man.mtool.work/php/8.3/function.openssl-pkey-get-details.html
http_build_query — URL エンコードされたクエリ文字列を生成する | PHP 8.3 8849
http_build_query (PHP 5, PHP 7, PHP 8) http_build_query — URL エンコードされたクエリ文字列を生成する 説明 function http_build_query ( array | object $data , string $numeric_prefix = "" , ? string $arg_separator = null , int $encoding_type = ... の http_build_query() の使用 <?php class parentClass { public $pub = 'publicParent' ; protected $prot = 'protectedParent' ; private $priv = 'privateParent' ; public $pub_bar = null ; protected $prot_bar = null ; private $priv_bar = null ; public funct ... ion __construct (){ $this -> pub_bar = new childClass (); $this -> prot_bar = new childClass (); $this -> priv_bar = new childClass (); } } class childClass { public $pub = 'publicChild' ; protected $prot = 'protectedChild' ; private ... $priv = 'privateChild' ; } $parent = new parentClass (); echo http_build_query ( $parent ); ?> 上の例の出力は以下となります。 pu ...
https://man.mtool.work/php/8.3/function.http-build-query.html
openssl_pkey_derive — リモートとローカルの DH/ECDH鍵 の公開値のための、共有シー... 8420
openssl_pkey_derive (PHP 7 >= 7.3.0, PHP 8) openssl_pkey_derive — リモートとローカルの DH/ECDH鍵 の公開値のための、共有シークレットを計算する 説明 function openssl_pkey_derive ( OpenSSLAsymmetricKey | OpenSSLCertificate | array | string $pu ... blic_key , #[ \SensitiveParameter ] OpenSSLAsymmetricKey | OpenSSLCertificate | array | string $private_key , int $key_length = 0 ): string | false openssl_pkey_derive() 関数は、 public_key と private_key を受け取り、 DH ま ... ey public_key は、共有シークレットを生成するための公開鍵です。 有効な値については、 キー/証明書パラメータ を参照ください。 private_key private_key は、共有シークレットを生成するための秘密鍵です。 有効な値については、 キー/証明書パラメータ を参照くださ ... 更履歴 バージョン 説明 8.5.0 key_length は、推奨されなくなりました。 例 例1 openssl_pkey_derive() 関数の例 <?php // Load in private key $priv = openssl_pkey_get_private ( "-----BEGIN PRIVATE KEY----- MIICJgIBADCCARcGCSqGSIb3DQEDATCCAQgCggEBAJLxRCaZ933 ...
https://man.mtool.work/php/8.3/function.openssl-pkey-derive.html
openssl_pkey_new — 新規に秘密鍵を生成する | PHP 8.3 8420
openssl_pkey_new (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) openssl_pkey_new — 新規に秘密鍵を生成する 説明 function openssl_pkey_new ( ? array $options = null ): OpenSSLAsymmetricKey | false openssl_pkey_new() は、 新しい秘密鍵を生成します。 鍵の ... る options の使用方法の詳細については、 openssl_csr_new() を参照ください。 これらのオプションのうち、鍵生成に使用されるのは private_key_bits , private_key_type , curve_name , config のみになります。 連想配列に特定のキーが含まれている場合、アルゴリズム ... description "n" string binary number yes modulus "e" string binary number no public exponent "d" string binary number yes private exponent "p" string binary number no prime 1 "q" string binary number no prime 2 "dmp1" string binary number no exponen ... "q" string binary number no 160-bit subprime, q | p-1 (public) "g" string binary number no generator of subgroup (public) "priv_key" string PEM key no private key x "pub_key" string PEM key no public key y = g^x DH (Diffie–Hellman key exchange) パラメ ...
https://man.mtool.work/php/8.3/function.openssl-pkey-new.html
openssl_dh_compute_key — ローカルのDH秘密鍵とリモート側のDH公開鍵を使い、共有シ... 7687
openssl_dh_compute_key (PHP 5 >= 5.3.0, PHP 7, PHP 8) openssl_dh_compute_key — ローカルのDH秘密鍵とリモート側のDH公開鍵を使い、共有シークレットを計算する 説明 function openssl_dh_compute_key ( string $public_key , #[ \SensitiveParameter ] O ... penSSLAsymmetricKey $private_key ): string | false openssl_dh_compute_key() 関数が返す共有シークレットは、 リモート側と秘密の通信をするための暗号鍵と ... ECDH は、PHP 8.1.0 以降、 かつ OpenSSL 3.0.0 以降でのみサポートされています。 パラメータ public_key リモート側の DH 公開鍵 private_key ローカル側の DH 秘密鍵。 これは、リモート側と共有している公開鍵に対応します。 戻り値 成功した場合、共有シークレット ... を返します。 失敗した場合に false を返します. 変更履歴 バージョン 説明 8.0.0 private_key は、 OpenSSLAsymmetricKey クラスのインスタンスを受け入れるようになりました。 これより前のバージョンでは、 OpenSSL k ...
https://man.mtool.work/php/8.3/function.openssl-dh-compute-key.html
SNMP::setSecurity — セキュリティ関連の SNMP v3 セッションパラメータを設定する |... 7580
SNMP::setSecurity (PHP 5 >= 5.4.0, PHP 7, PHP 8) SNMP::setSecurity — セキュリティ関連の SNMP v3 セッションパラメータを設定する 説明 public function SNMP::setSecurity ( string $securityLevel , string $authProtocol = "" , string $authPassphra ... se = "" , string $privacyProtocol = "" , string $privacyPassphrase = "" , string $contextName = "" , string $contextEngineId = "" ): bool setSecu ... ージョン 3 で使うセキュリティ関連のセッションパラメータを設定します。 パラメータ securityLevel セキュリティレベル。 "noAuthNoPriv" 、 "authNoPriv" 、 "authPriv" のいずれかです。 authProtocol 認証プロトコル。 "MD5" 、 "SHA" 、 "SHA256" 、 "SHA512" のいず ... れかです。 authPassphrase 認証パスフレーズ。 privacyProtocol プライバシープロトコル。 "DES" 、 あるいは "AES" ( "AES128" としても受け付けられます)です。 "AES192" 、 "AES1 ...
https://man.mtool.work/php/8.3/snmp.setsecurity.html
openssl_csr_export_to_file — CSR をファイルにエクスポートする | PHP 8.3 7472
openssl_csr_export_to_file (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) openssl_csr_export_to_file — CSR をファイルにエクスポートする 説明 function openssl_csr_export_to_file ( OpenSSLCertificateSigningRequest | string $csr , string $output_filena ... を受け入れていました。 例 例1 openssl_csr_export_to_file() の例 <?php $subject = array( "commonName" => "example.com" , ); $private_key = openssl_pkey_new (array( "private_key_bits" => 2048 , "private_key_type" => OPENSSL_KEYTYPE_RSA , )); $csr = open ... ssl_csr_new ( $subject , $private_key , array( 'digest_alg' => 'sha384' ) ); openssl_pkey_export_to_file ( $private_key , 'example-priv.key' ); // Along ... with the subject, the CSR contains the public key corresponding to the private key openssl_csr_export_to_file ( $csr , 'example-csr.pem' ); ?> 参考 openssl_csr_export() - CSR を文字列としてエクスポー ...
https://man.mtool.work/php/8.3/function.openssl-csr-export-to-file.html
検証フィルタ | PHP 8.3 7061
検証フィルタ 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 FILTER_VALIDATE_BOOL ( int ) "1" , 2進数、8進数、16進数記法の 1 , 科学的記法を ... 0.0.0/8 , 240.0.0.0/4 IPv6 については、以下の範囲が該当します: ::1/128 , ::/128 , ::FFFF:0:0/96 , FE80::/10 FILTER_FLAG_NO_PRIV_RANGE ( int ) プライベートアドレスを拒否します。 IPv4 については、以下の範囲が該当します: 10.0.0.0/8 , 172.16.0.0/12 , 192 ...
https://man.mtool.work/php/8.3/filter.constants.validation.html
PREV 1 NEXT