Results of 1 - 3 of about 3 for outputFile (0.001 sec.)
- sodium_crypto_secretstream_xchacha20poly1305_init_push — 暗号化のために、シーク... 11273
- sodium_crypto_secretstream_xchacha20poly1305_init_push (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_secretstream_xchacha20poly1305_init_push — 暗号化のために、シークレットストリームのコンテキストを初期化する 説明 function sodium_crypto_secretstrea
... 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...
- sodium_crypto_secretstream_xchacha20poly1305_init_pull — 復号のためのシークレッ... 9784
- sodium_crypto_secretstream_xchacha20poly1305_init_pull (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_secretstream_xchacha20poly1305_init_pull — 復号のためのシークレットストリームのコンテキストを初期化する 説明 function sodium_crypto_secretstream_xc
... 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...
- リモートファイルの使用 | PHP 8.3 6808
- リモートファイルの使用 php.ini で allow_url_fopen を有効にした場合、 ファイル名をパラメータとする関数の多くで HTTP および FTP のURL を使用することができます。加えて、 include 、 include_once 、 require および require_once 命令でURLを使用する
... 構文を使用することができます)。 例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