Results of 1 - 6 of about 6 for outputFile (0.001 sec.)
- 暗号化のために、シークレットストリームのコンテキストを初期化する 11113
- « sodium_crypto_secretstream_xchacha20poly1305_init_pull sodium_crypto_secretstream_xchacha20poly1305_keygen » PHP Manual Sodium 関数 暗号化のために、シークレットストリームのコンテキストを初期化する 検索 sodium_crypto_secretstream_xchacha20
... odium_crypto_secretstream_xchacha20poly1305_init_push() の例 <?php function encrypt_file ( string $inputFilePath , string $outputFilePath , string $key ): void { [ $state , $header ] = sodium_crypto_secretstream_xchacha20poly1305_init_push ( $key ); $input ... File = fopen ( $inputFilePath , 'rb' ); $outputFile = fopen ( $outputFilePath , 'wb' ); // Write the header: fwrite ( $outputFile , $header ); $inputFileSize = fstat ( $input ... File )[ 'size' ]; // Encrypt the file and write its contents to the output file: for ( $i = 0 ; $i < $inputFileSize ; $i += 8175 ) { $ptxt_chunk = fread ( $inputFile , 8175 ); $ctxt_chunk = sodium_cryp ...
-
https://man.mtool.work/php/8.3/function.sodium-crypto-secretstream-xchacha20poly...
- 暗号化のために、シークレットストリームのコンテキストを初期化する 11113
- « sodium_crypto_secretstream_xchacha20poly1305_init_pull sodium_crypto_secretstream_xchacha20poly1305_keygen » PHP Manual Sodium 関数 暗号化のために、シークレットストリームのコンテキストを初期化する 検索 sodium_crypto_secretstream_xchacha20
... odium_crypto_secretstream_xchacha20poly1305_init_push() の例 <?php function encrypt_file ( string $inputFilePath , string $outputFilePath , string $key ): void { [ $state , $header ] = sodium_crypto_secretstream_xchacha20poly1305_init_push ( $key ); $input ... File = fopen ( $inputFilePath , 'rb' ); $outputFile = fopen ( $outputFilePath , 'wb' ); // Write the header: fwrite ( $outputFile , $header ); $inputFileSize = fstat ( $input ... File )[ 'size' ]; // Encrypt the file and write its contents to the output file: for ( $i = 0 ; $i < $inputFileSize ; $i += 8175 ) { $ptxt_chunk = fread ( $inputFile , 8175 ); $ctxt_chunk = sodium_cryp ...
-
https://man.mtool.work/php/8.3/function.sodium-crypto-secretstream-xchacha20poly...
- 復号のためのシークレットストリームのコンテキストを初期化する 10053
- « sodium_crypto_secretbox_open sodium_crypto_secretstream_xchacha20poly1305_init_push » PHP Manual Sodium 関数 復号のためのシークレットストリームのコンテキストを初期化する 検索 sodium_crypto_secretstream_xchacha20poly1305_init_pull (PHP 7 >
... odium_crypto_secretstream_xchacha20poly1305_init_pull() の例 <?php function decrypt_file ( string $inputFilePath , string $outputFilePath , string $key ): void { $inputFile = fopen ( $inputFilePath , 'rb' ); $outputFile = fopen ( $outputFilePath , 'wb' ); ... ull ( $header , $key ); $inputFileSize = fstat ( $inputFile )[ 'size' ]; // Decrypt the file and write its contents to the output file: for ( $i = 24 ; $i < $inputFileSize ; $i += 8192 ) { $ctxt_chunk = fread ( $inputFile , 8192 ); // We're not using $tag, ... s behavior. [ $ptxt_chunk , $tag ] = sodium_crypto_secretstream_xchacha20poly1305_pull ( $state , $ctxt_chunk ); fwrite ( $outputFile , $ptxt_chunk ); } sodium_memzero ( $state ); fclose ( $inputFile ); fclose ( $outputFile ); } // sodium_crypto_secretstre ...
-
https://man.mtool.work/php/8.3/function.sodium-crypto-secretstream-xchacha20poly...
- 復号のためのシークレットストリームのコンテキストを初期化する 8993
- « sodium_crypto_secretbox_open sodium_crypto_secretstream_xchacha20poly1305_init_push » PHP Manual Sodium 関数 復号のためのシークレットストリームのコンテキストを初期化する 検索 sodium_crypto_secretstream_xchacha20poly1305_init_pull (PHP 7 >
... odium_crypto_secretstream_xchacha20poly1305_init_pull() の例 <?php function decrypt_file ( string $inputFilePath , string $outputFilePath , string $key ): void { $inputFile = fopen ( $inputFilePath , 'rb' ); $outputFile = fopen ( $outputFilePath , 'wb' ); ... ull ( $header , $key ); $inputFileSize = fstat ( $inputFile )[ 'size' ]; // Decrypt the file and write its contents to the output file: for ( $i = 24 ; $i < $inputFileSize ; $i += 8192 ) { $ctxt_chunk = fread ( $inputFile , 8192 ); // We're not using $tag, ... s behavior. [ $ptxt_chunk , $tag ] = sodium_crypto_secretstream_xchacha20poly1305_pull ( $state , $ctxt_chunk ); fwrite ( $outputFile , $ptxt_chunk ); } sodium_memzero ( $state ); fclose ( $inputFile ); fclose ( $outputFile ); } // sodium_crypto_secretstre ...
-
https://man.mtool.work/php/8.3/function.sodium-crypto-secretstream-xchacha20poly...
- リモートファイルの使用 6745
- « 参考 接続処理 » PHP Manual 機能 リモートファイルの使用 検索 リモートファイルの使用 php.ini で allow_url_fopen を有効にした場合、 ファイル名をパラメータとする関数の多くで HTTP および FTP のURL を使用することができます。加えて、 include 、
... 構文を使用することができます)。 例2 リモートサーバーにデータを保存する <?php $file = fopen ( "ftp://ftp.example.com/incoming/outputfile" , "w" ); if (! $file ) { echo "<p>Unable to open remote file for writing.\n" ; exit; } /* データをここに書きます。 */ fpu ...
-
https://man.mtool.work/php/8.3/features.remote-files.html
- リモートファイルの使用 6745
- « 参考 接続処理 » PHP Manual 機能 リモートファイルの使用 検索 リモートファイルの使用 php.ini で allow_url_fopen を有効にした場合、 ファイル名をパラメータとする関数の多くで HTTP および FTP のURL を使用することができます。加えて、 include 、
... 構文を使用することができます)。 例2 リモートサーバーにデータを保存する <?php $file = fopen ( "ftp://ftp.example.com/incoming/outputfile" , "w" ); if (! $file ) { echo "<p>Unable to open remote file for writing.\n" ; exit; } /* データをここに書きます。 */ fpu ...
-
https://man.mtool.work/php/8.3/features.remote-files.html
PREV
1
NEXT