Results of 1 - 10 of about 32 for Ciphertext (0.008 sec.)
- 指定したパラメータでプレーンテキストを暗号化する 12195
- « mcrypt_enc_self_test mcrypt_generic » PHP Manual Mcrypt 関数 指定したパラメータでプレーンテキストを暗号化する 検索 mcrypt_encrypt (PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0) mcrypt_encrypt — 指定したパラメータでプレーンテ
... 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
- 指定したパラメータでプレーンテキストを暗号化する 12195
- « mcrypt_enc_self_test mcrypt_generic » PHP Manual Mcrypt 関数 指定したパラメータでプレーンテキストを暗号化する 検索 mcrypt_encrypt (PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0) mcrypt_encrypt — 指定したパラメータでプレーンテ
... 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
- データを暗号化する 10729
- « 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
... 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
- データを暗号化する 10729
- « 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
... 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
- 認証付きの共有鍵による復号 9408
- « sodium_crypto_secretbox_keygen sodium_crypto_secretstream_xchacha20poly1305_init_pull » PHP Manual Sodium 関数 認証付きの共有鍵による復号 検索 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 ...
-
https://man.mtool.work/php/8.3/function.sodium-crypto-secretbox-open.html
- 匿名の公開鍵暗号による復号 9327
- « sodium_crypto_box_seal sodium_crypto_box_secretkey » PHP Manual Sodium 関数 匿名の公開鍵暗号による復号 検索 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
- 認証付きの共有鍵による復号 9327
- « sodium_crypto_secretbox_keygen sodium_crypto_secretstream_xchacha20poly1305_init_pull » PHP Manual Sodium 関数 認証付きの共有鍵による復号 検索 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 ...
-
https://man.mtool.work/php/8.3/function.sodium-crypto-secretbox-open.html
- 認証付きの共有鍵による暗号化 8779
- « sodium_crypto_scalarmult_ristretto255_base sodium_crypto_secretbox_keygen » PHP Manual Sodium 関数 認証付きの共有鍵による暗号化 検索 sodium_crypto_secretbox (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_secretbox — 認証付きの共有鍵による暗号化 説
... 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 )); ?> 上の例の出力は、 たとえば以下のようになります ... 、ランダムなバイト列を生成する 関連キーワード: sodium crypto secretbox key nonce 暗号化 string 共有 認証 message 長さ バイト ciphertext keygen random bytes ランダム SodiumException open SensitiveParameter ...
-
https://man.mtool.work/php/8.3/function.sodium-crypto-secretbox.html
- 認証付きの共有鍵による暗号化 8699
- « sodium_crypto_scalarmult_ristretto255_base sodium_crypto_secretbox_keygen » PHP Manual Sodium 関数 認証付きの共有鍵による暗号化 検索 sodium_crypto_secretbox (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_secretbox — 認証付きの共有鍵による暗号化 説
... 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 )); ?> 上の例の出力は、 たとえば以下のようになります ... 学的にセキュアな、ランダムなバイト列を生成する 関連キーワード: sodium crypto secretbox nonce 暗号化 共有 認証 message バイト ciphertext keygen random bytes ランダム SodiumException SensitiveParameter メッセージ plaintext encrypted dump scalarmult ristretto b ...
-
https://man.mtool.work/php/8.3/function.sodium-crypto-secretbox.html
- 匿名の公開鍵暗号による復号 8554
- « sodium_crypto_box_seal sodium_crypto_box_secretkey » PHP Manual Sodium 関数 匿名の公開鍵暗号による復号 検索 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