« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 16 for ciphertext (0.002 sec.)
mcrypt_encrypt — 指定したパラメータでプレーンテキストを暗号化する | PHP 8.3 13481
mcrypt_encrypt (PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0) mcrypt_encrypt — 指定したパラメータでプレーンテキストを暗号化する 警告 この関数は PHP 7.1.0 で 非推奨 となり、PHP 7.2.0 で 削除 されました。この関数に頼らないことを ... rypt_get_iv_size ( MCRYPT_RIJNDAEL_128 , MCRYPT_MODE_CBC ); $iv = mcrypt_create_iv ( $iv_size , MCRYPT_RAND ); # creates a cipher text compatible with AES (Rijndael block size = 128) # to keep the text confidential # only suitable for encoded input that ne ... ver ends with value 00h # (because of default zero padding) $ciphertext = mcrypt_encrypt ( MCRYPT_RIJNDAEL_128 , $key , $plaintext , MCRYPT_MODE_CBC , $iv ); # prepend the IV for it to be availa ... ble for decryption $ciphertext = $iv . $ciphertext ; # encode the resulting cipher text so it can be represented by a string $ciphertext_base64 = base64_ ...
https://man.mtool.work/php/8.3/function.mcrypt-encrypt.html
openssl_encrypt — データを暗号化する | PHP 8.3 11766
openssl_encrypt (PHP 5 >= 5.3.0, PHP 7, PHP 8) openssl_encrypt — データを暗号化する 説明 function openssl_encrypt ( #[ \SensitiveParameter ] string $data , string $cipher_algo , #[ \SensitiveParameter ] string $passphrase , int $options = 0 ... sl_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 decrypti ... on later $original_plaintext = openssl_decrypt ( $ciphertext , $cipher , $key , $options = 0 , $iv , $tag ); echo $original_plaintext . "\n" ; } ?> 例2 PHP 7.1 より前のバージョンで、A ... encrypted" ; $ivlen = openssl_cipher_iv_length ( $cipher = "AES-128-CBC" ); $iv = openssl_random_pseudo_bytes ( $ivlen ); $ciphertext_raw = openssl_encrypt ( $plaintext , $cipher , $key , $options = OPENSSL_RAW_DATA , $iv ); $hmac = hash_hmac ( 'sha256' , ...
https://man.mtool.work/php/8.3/function.openssl-encrypt.html
sodium_crypto_secretbox_open — 認証付きの共有鍵による復号 | PHP 8.3 10137
sodium_crypto_secretbox_open (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_secretbox_open — 認証付きの共有鍵による復号 説明 function sodium_crypto_secretbox_open ( string $ciphertext , string $nonce , #[ \SensitiveParameter ] string $key ): string ... | false 対称(共有)鍵を使い、暗号化されたメッセージを復号します。 パラメータ ciphertext sodium_crypto_secretbox() が生成したフォーマットでなければいけません。 (暗号化されたテキスト、タグを連結したもの) nonce メ ... RETBOX_KEYBYTES ); // Do not reuse $nonce with the same key $nonce = random_bytes ( SODIUM_CRYPTO_SECRETBOX_NONCEBYTES ); $ciphertext = sodium_crypto_secretbox ( 'message to be encrypted' , $nonce , $key ); // The same nonce and key are required to decrypt ... the $ciphertext $plaintext = sodium_crypto_secretbox_open ( $ciphertext , $nonce , $key ); if ( $plaintext !== false ) { echo $plaintext . ...
https://man.mtool.work/php/8.3/function.sodium-crypto-secretbox-open.html
sodium_crypto_secretbox — 認証付きの共有鍵による暗号化 | PHP 8.3 9444
sodium_crypto_secretbox (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_secretbox — 認証付きの共有鍵による暗号化 説明 function sodium_crypto_secretbox ( #[ \SensitiveParameter ] string $message , string $nonce , #[ \SensitiveParameter ] string $key ) ... with the same key $nonce = random_bytes ( SODIUM_CRYPTO_SECRETBOX_NONCEBYTES ); $plaintext = "message to be encrypted" ; $ciphertext = sodium_crypto_secretbox ( $plaintext , $nonce , $key ); var_dump ( bin2hex ( $ciphertext )); // The same nonce and key a ... re required to decrypt the $ciphertext var_dump ( sodium_crypto_secretbox_open ( $ciphertext , $nonce , $key )); ?> 上の例の出力は、 たとえば以下のようになります ...
https://man.mtool.work/php/8.3/function.sodium-crypto-secretbox.html
sodium_crypto_box_seal_open — 匿名の公開鍵暗号による復号 | PHP 8.3 9010
sodium_crypto_box_seal_open (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_box_seal_open — 匿名の公開鍵暗号による復号 説明 function sodium_crypto_box_seal_open ( string $ciphertext , #[ \SensitiveParameter ] string $key_pair ): string | false sodium ... _crypto_box_seal() を使って暗号化されたメッセージを復号します。 パラメータ ciphertext 暗号化されたメッセージ key_pair 受信側の鍵ペア。 秘密鍵が含まれている必要があります。 戻り値 成功時にはプレーンテキストを返 ... します。 失敗した場合に false を返します. 例 例1 sodium_crypto_box_seal_open() の例 <?php // Ciphertext is not sensitive; base64_decode is fine $sealed_b64 = "oRBXXAV4iQBrxlV4A21Bord8Yo/D8ZlrIIGNyaRCcGBfpz0map52I3xq6l+CST+1NSg ...
https://man.mtool.work/php/8.3/function.sodium-crypto-box-seal-open.html
sodium_crypto_box_open — 認証付きの公開鍵による復号 | PHP 8.3 8161
sodium_crypto_box_open (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_box_open — 認証付きの公開鍵による復号 説明 function sodium_crypto_box_open ( string $ciphertext , string $nonce , #[ \SensitiveParameter ] string $key_pair ): string | false 非対称 ... (公開鍵)暗号を使って、メッセージを復号します。 パラメータ ciphertext 復号を試みる、暗号化されたメッセージ nonce メッセージごとに一度だけ使われる数値。 長さは24バイトです。 これは、 (たとえば、 ...
https://man.mtool.work/php/8.3/function.sodium-crypto-box-open.html
sodium_crypto_aead_chacha20poly1305_decrypt — ChaCha20-Poly1305 を用いてメッセ... 8075
sodium_crypto_aead_chacha20poly1305_decrypt (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_aead_chacha20poly1305_decrypt — ChaCha20-Poly1305 を用いてメッセージを検証し、復号する 説明 function sodium_crypto_aead_chacha20poly1305_decrypt ( string $ciphertext ... \SensitiveParameter ] string $key ): string | false ChaCha20-Poly1305 を用いてメッセージを検証し、復号します。 パラメータ ciphertext sodium_crypto_aead_chacha20poly1305_encrypt() が生成したフォーマット (暗号化されたテキスト、タグを連結したもの) でなければ ...
https://man.mtool.work/php/8.3/function.sodium-crypto-aead-chacha20poly1305-decr...
sodium_crypto_aead_aegis128l_decrypt — AEGIS-128L を用いてメッセージを検証し、... 7988
sodium_crypto_aead_aegis128l_decrypt (PHP 8 >= 8.4.0) sodium_crypto_aead_aegis128l_decrypt — AEGIS-128L を用いてメッセージを検証し、復号する 説明 function sodium_crypto_aead_aegis128l_decrypt ( string $ciphertext , string $additional_data , ... ce , #[ \SensitiveParameter ] string $key ): string | false AEGIS-128L を用いてメッセージを検証し、復号します。 パラメータ ciphertext sodium_crypto_aead_aegis128l_encrypt() が生成したフォーマットでなければなりません。 additional_data 追加の認証データ。 これ ...
https://man.mtool.work/php/8.3/function.sodium-crypto-aead-aegis128l-decrypt.htm...
sodium_crypto_aead_aegis256_decrypt — AEGIS-256 を用いてメッセージを検証し、復... 7988
sodium_crypto_aead_aegis256_decrypt (PHP 8 >= 8.4.0) sodium_crypto_aead_aegis256_decrypt — AEGIS-256 を用いてメッセージを検証し、復号する 説明 function sodium_crypto_aead_aegis256_decrypt ( string $ciphertext , string $additional_data , str ... nce , #[ \SensitiveParameter ] string $key ): string | false AEGIS-256 を用いてメッセージを検証し、復号します。 パラメータ ciphertext sodium_crypto_aead_aegis256_encrypt() が生成したフォーマットでなければなりません。 additional_data 追加の認証データ。 これ ...
https://man.mtool.work/php/8.3/function.sodium-crypto-aead-aegis256-decrypt.html
sodium_crypto_aead_aes256gcm_decrypt — AES-256-GCM を用いてメッセージを検証し、... 7901
sodium_crypto_aead_aes256gcm_decrypt (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_aead_aes256gcm_decrypt — AES-256-GCM を用いてメッセージを検証し、復号する 説明 function sodium_crypto_aead_aes256gcm_decrypt ( string $ciphertext , string $additiona ... ッセージを検証し、復号します。 sodium_crypto_aead_aes256gcm_is_available() が true を返す場合にのみ利用可能です。 パラメータ ciphertext sodium_crypto_aead_aes256gcm_encrypt() が生成したフォーマット (暗号化されたテキスト、タグを連結したもの) でなければなりませ ...
https://man.mtool.work/php/8.3/function.sodium-crypto-aead-aes256gcm-decrypt.htm...
PREV 1 2 NEXT