« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 26 for plaintext (0.003 sec.)
指定されたテキストを復号し、検証する 12067
« gnupg_decrypt gnupg_deletekey » PHP Manual GnuPG 関数 指定されたテキストを復号し、検証する 検索 gnupg_decryptverify (PECL gnupg >= 0.2) gnupg_decryptverify — 指定されたテキストを復号し、検証する 説明 function gnupg_decryptverify ( resourc ... e $identifier , string $text , string &$plaintext ): array | false 指定したテキストを復号・検証し、署名の情報を返します。 パラメータ identifier gnupg_init() あるいは gnupg ... のコールで得られた gnupg ID。 text 復号したいテキスト。 plaintext plaintext には復号したテキストが格納されます。 戻り値 成功した場合、この関数は署名の情報を返し、復号されたテキストを plain ... text に保存します。 失敗した場合、この関数は false を返します。 例 例1 手続き型の gnupg_decryptverify() の例 <?php $plaintext = "" ; $res = gnupg_init (); gnupg_adddecryptkey ( $res , "8660281B6051D071D94B5B230549F9DC851566DC" , "test" ); $info = g ...
https://man.mtool.work/php/8.3/function.gnupg-decryptverify.html
指定されたテキストを復号し、検証する 12001
« gnupg_decrypt gnupg_deletekey » PHP Manual GnuPG 関数 指定されたテキストを復号し、検証する 検索 gnupg_decryptverify (PECL gnupg >= 0.2) gnupg_decryptverify — 指定されたテキストを復号し、検証する 説明 function gnupg_decryptverify ( resourc ... e $identifier , string $text , string &$plaintext ): array | false 指定したテキストを復号・検証し、署名の情報を返します。 パラメータ identifier gnupg_init() あるいは gnupg ... のコールで得られた gnupg ID。 text 復号したいテキスト。 plaintext plaintext には復号したテキストが格納されます。 戻り値 成功した場合、この関数は署名の情報を返し、復号されたテキストを plain ... text に保存します。 失敗した場合、この関数は false を返します。 例 例1 手続き型の gnupg_decryptverify() の例 <?php $plaintext = "" ; $res = gnupg_init (); gnupg_adddecryptkey ( $res , "8660281B6051D071D94B5B230549F9DC851566DC" , "test" ); $info = g ...
https://man.mtool.work/php/8.3/function.gnupg-decryptverify.html
署名済みテキストを検証する 10298
« gnupg_sign wkhtmltox » PHP Manual GnuPG 関数 署名済みテキストを検証する 検索 gnupg_verify (PECL gnupg >= 0.1) gnupg_verify — 署名済みテキストを検証する 説明 function gnupg_verify ( resource $identifier , string $signed_text , string $sign ... ature , string &$plaintext = ? ): array | false 指定した signed_text を検証し、署名についての情報を返します。 パラメータ identifier gnupg_init() ある ... ned_text The signed text. signature 署名。clearsign で署名されたテキストを検証するには、 signature に false を設定します。 plaintext 平文テキスト。 このオプションのパラメータを渡すと、 復号されたテキストがそこに保存されます。 戻り値 成功した場合、この関数 ... は署名についての情報を返します。 失敗した場合、この関数は false を返します。 例 例1 手続き型の gnupg_verify() の例 <?php $plaintext = "" ; $res = gnupg_init (); // clearsigned $info = gnupg_verify ( $res , $signed_text , false , $plaintext ); print_r ( $ ...
https://man.mtool.work/php/8.3/function.gnupg-verify.html
署名済みテキストを検証する 10232
« gnupg_sign wkhtmltox » PHP Manual GnuPG 関数 署名済みテキストを検証する 検索 gnupg_verify (PECL gnupg >= 0.1) gnupg_verify — 署名済みテキストを検証する 説明 function gnupg_verify ( resource $identifier , string $signed_text , string $sign ... ature , string &$plaintext = ? ): array | false 指定した signed_text を検証し、署名についての情報を返します。 パラメータ identifier gnupg_init() ある ... ned_text The signed text. signature 署名。clearsign で署名されたテキストを検証するには、 signature に false を設定します。 plaintext 平文テキスト。 このオプションのパラメータを渡すと、 復号されたテキストがそこに保存されます。 戻り値 成功した場合、この関数 ... は署名についての情報を返します。 失敗した場合、この関数は false を返します。 例 例1 手続き型の gnupg_verify() の例 <?php $plaintext = "" ; $res = gnupg_init (); // clearsigned $info = gnupg_verify ( $res , $signed_text , false , $plaintext ); print_r ( $ ...
https://man.mtool.work/php/8.3/function.gnupg-verify.html
データを暗号化する 9406
« openssl_digest openssl_error_string » PHP Manual OpenSSL 関数 データを暗号化する 検索 openssl_encrypt (PHP 5 >= 5.3.0, PHP 7, PHP 8) openssl_encrypt — データを暗号化する 説明 function openssl_encrypt ( #[ \SensitiveParameter ] string $dat ... 使う例 <?php //$key should have been previously generated in a cryptographically safe way, like openssl_random_pseudo_bytes $plaintext = "message to be encrypted" ; $cipher = "aes-128-gcm" ; if ( in_array ( $cipher , openssl_get_cipher_methods ())) { $ivlen ... = openssl_cipher_iv_length ( $cipher ); $iv = openssl_random_pseudo_bytes ( $ivlen ); $ciphertext = openssl_encrypt ( $plaintext , $cipher , $key , $options = 0 , $iv , $tag ); //store $cipher, $iv, and $tag for decryption later $original_plaintext = ... openssl_decrypt ( $ciphertext , $cipher , $key , $options = 0 , $iv , $tag ); echo $original_plaintext . "\n" ; } ?> 例2 PHP 7.1 より前のバージョンで、AES を使う例 <?php //$key previously generated safely, ie: openssl_random_ ...
https://man.mtool.work/php/8.3/function.openssl-encrypt.html
データを暗号化する 9406
« openssl_digest openssl_error_string » PHP Manual OpenSSL 関数 データを暗号化する 検索 openssl_encrypt (PHP 5 >= 5.3.0, PHP 7, PHP 8) openssl_encrypt — データを暗号化する 説明 function openssl_encrypt ( #[ \SensitiveParameter ] string $dat ... 使う例 <?php //$key should have been previously generated in a cryptographically safe way, like openssl_random_pseudo_bytes $plaintext = "message to be encrypted" ; $cipher = "aes-128-gcm" ; if ( in_array ( $cipher , openssl_get_cipher_methods ())) { $ivlen ... = openssl_cipher_iv_length ( $cipher ); $iv = openssl_random_pseudo_bytes ( $ivlen ); $ciphertext = openssl_encrypt ( $plaintext , $cipher , $key , $options = 0 , $iv , $tag ); //store $cipher, $iv, and $tag for decryption later $original_plaintext = ... openssl_decrypt ( $ciphertext , $cipher , $key , $options = 0 , $iv , $tag ); echo $original_plaintext . "\n" ; } ?> 例2 PHP 7.1 より前のバージョンで、AES を使う例 <?php //$key previously generated safely, ie: openssl_random_ ...
https://man.mtool.work/php/8.3/function.openssl-encrypt.html
匿名の公開鍵暗号による暗号化 9158
« sodium_crypto_box_publickey_from_secretkey sodium_crypto_box_seal_open » PHP Manual Sodium 関数 匿名の公開鍵暗号による暗号化 検索 sodium_crypto_box_seal (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_box_seal — 匿名の公開鍵暗号による暗号化 説明 fu ... の例 <?php $keypair = sodium_crypto_box_keypair (); $public_key = sodium_crypto_box_publickey ( $keypair ); // Obfuscated plaintext to make the example more fun $plaintext_b64 = "V3JpdGluZyBzb2Z0d2FyZSBpbiBQSFAgY2FuIGJlIGEgZGVsaWdodCE=" ; $decoded_plaint ... ext = sodium_base642bin ( $plaintext_b64 , SODIUM_BASE64_VARIANT_ORIGINAL ); $sealed = sodium_crypto_box_seal ( $decoded_plaintext , $public_key ); var_dump ( ... w=" string(41) "Writing software in PHP can be a delight!" 関連キーワード: sodium crypto box 暗号化 seal メッセージ string plaintext 匿名 公開鍵暗号 key 公開鍵 認証 keypair open sealed publickey message 受信 復号 ...
https://man.mtool.work/php/8.3/function.sodium-crypto-box-seal.html
匿名の公開鍵暗号による暗号化 9158
« sodium_crypto_box_publickey_from_secretkey sodium_crypto_box_seal_open » PHP Manual Sodium 関数 匿名の公開鍵暗号による暗号化 検索 sodium_crypto_box_seal (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_box_seal — 匿名の公開鍵暗号による暗号化 説明 fu ... の例 <?php $keypair = sodium_crypto_box_keypair (); $public_key = sodium_crypto_box_publickey ( $keypair ); // Obfuscated plaintext to make the example more fun $plaintext_b64 = "V3JpdGluZyBzb2Z0d2FyZSBpbiBQSFAgY2FuIGJlIGEgZGVsaWdodCE=" ; $decoded_plaint ... ext = sodium_base642bin ( $plaintext_b64 , SODIUM_BASE64_VARIANT_ORIGINAL ); $sealed = sodium_crypto_box_seal ( $decoded_plaintext , $public_key ); var_dump ( ... Jt3h3emrMsLw=" string(41) "Writing software in PHP can be a delight!" 関連キーワード: sodium crypto 暗号化 seal メッセージ plaintext 匿名 公開鍵暗号 公開鍵 認証 keypair sealed publickey message 受信 復号 完全性 送信 decoded base dump opened secretkey Sodi ...
https://man.mtool.work/php/8.3/function.sodium-crypto-box-seal.html
指定したテキストに署名する 8596
« gnupg_setsignmode gnupg_verify » PHP Manual GnuPG 関数 指定したテキストに署名する 検索 gnupg_sign (PECL gnupg >= 0.1) gnupg_sign — 指定したテキストに署名する 説明 function gnupg_sign ( resource $identifier , string $plaintext ): string | ... false 事前に gnupg_addsignkey で設定したキーを使用して plaintext に署名し、 gnupg_setsignmode の設定に応じて署名済みテキストあるいは署名を返します。 パラメータ identifier gnupg_init() ある ... いは gnupg のコールで得られた gnupg ID。 plaintext 署名したい平文テキスト。 戻り値 成功した場合、この関数は署名済みテキストあるいは署名を返します。 失敗した場合、この関数は ... C" , "test" ); $signed = $gpg -> sign ( "just a test" ); echo $signed ; ?> 関連キーワード: gnupg 署名 テキスト test signed plaintext addsignkey res gpg setsignmode identifier string false init 場合 php echo Search verify GnuPG ...
https://man.mtool.work/php/8.3/function.gnupg-sign.html
指定したテキストに署名する 8596
« gnupg_setsignmode gnupg_verify » PHP Manual GnuPG 関数 指定したテキストに署名する 検索 gnupg_sign (PECL gnupg >= 0.1) gnupg_sign — 指定したテキストに署名する 説明 function gnupg_sign ( resource $identifier , string $plaintext ): string | ... false 事前に gnupg_addsignkey で設定したキーを使用して plaintext に署名し、 gnupg_setsignmode の設定に応じて署名済みテキストあるいは署名を返します。 パラメータ identifier gnupg_init() ある ... いは gnupg のコールで得られた gnupg ID。 plaintext 署名したい平文テキスト。 戻り値 成功した場合、この関数は署名済みテキストあるいは署名を返します。 失敗した場合、この関数は ... 1566DC" , "test" ); $signed = $gpg -> sign ( "just a test" ); echo $signed ; ?> 関連キーワード: gnupg 署名 テキスト signed plaintext addsignkey setsignmode identifier init verify GnuPG resource キー 平文 成功 手続き オブジェクト指向 ...
https://man.mtool.work/php/8.3/function.gnupg-sign.html
PREV 1 2 3 NEXT