Results of 1 - 3 of about 3 for inputfile (0.001 sec.)
- sodium_crypto_secretstream_xchacha20poly1305_init_pull — 復号のためのシークレッ... 11049
- sodium_crypto_secretstream_xchacha20poly1305_init_pull (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_secretstream_xchacha20poly1305_init_pull — 復号のためのシークレットストリームのコンテキストを初期化する 説明 function sodium_crypto_secretstream_xc
... ートを返します。 例 例1 sodium_crypto_secretstream_xchacha20poly1305_init_pull() の例 <?php function decrypt_file ( string $inputFilePath , string $outputFilePath , string $key ): void { $inputFile = fopen ( $inputFilePath , 'rb' ); $outputFile = fopen ( $ ... outputFilePath , 'wb' ); $header = fread ( $inputFile , 24 ); $state = sodium_crypto_secretstream_xchacha20poly1305_init_pull ( $header , $key ); $inputFileSize = fstat ( $inpu ... tFile )[ '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, but in real protocols you can use ...
-
https://man.mtool.work/php/8.3/function.sodium-crypto-secretstream-xchacha20poly...
- sodium_crypto_secretstream_xchacha20poly1305_init_push — 暗号化のために、シーク... 10119
- sodium_crypto_secretstream_xchacha20poly1305_init_push (PHP 7 >= 7.2.0, PHP 8) sodium_crypto_secretstream_xchacha20poly1305_init_push — 暗号化のために、シークレットストリームのコンテキストを初期化する 説明 function sodium_crypto_secretstrea
... ために必要です。 例 例1 sodium_crypto_secretstream_xchacha20poly1305_init_push() の例 <?php function encrypt_file ( string $inputFilePath , string $outputFilePath , string $key ): void { [ $state , $header ] = sodium_crypto_secretstream_xchacha20poly1305_i ... nit_push ( $key ); $inputFile = fopen ( $inputFilePath , 'rb' ); $outputFile = fopen ( $outputFilePath , 'wb' ); // Write the header: fwrite ( $outputFi ... le , $header ); $inputFileSize = fstat ( $inputFile )[ 'size' ]; // Encrypt the file and write its contents to the output file: for ( $i = 0 ; $i < $ ...
-
https://man.mtool.work/php/8.3/function.sodium-crypto-secretstream-xchacha20poly...
- fgets — ファイルポインタから 1 行取得する | PHP 8.3 6715
- fgets (PHP 4, PHP 5, PHP 7, PHP 8) fgets — ファイルポインタから 1 行取得する 説明 function fgets ( resource $stream , ? int $length = null ): string | false ファイルポインタから 1 行取得します。 パラメータ stream ファイルポインタは、有効なフ
... は false を返します。 エラーが起こった場合、 false を返します。 例 例1 行毎にファイルを読み込む <?php $fp = @ fopen ( "/tmp/inputfile.txt" , "r" ); if ( $fp ) { while (( $buffer = fgets ( $fp , 4096 )) !== false ) { echo $buffer , PHP_EOL ; } if (! feof ( ...
-
https://man.mtool.work/php/8.3/function.fgets.html
PREV
1
NEXT