ParagonIE_Sodium_File::box_open

SummerySummery

Open a boxed file (rather than a string). Uses less memory than ParagonIE_Sodium_Compat::crypto_box_open(), but produces the same result.

Syntax

ParagonIE_Sodium_File::box_open( string $inputFile, string $outputFile, string $nonce, string $keypair )

DescriptionDescription

Warning: Does not protect against TOCTOU attacks. You should just load the file into memory and use crypto_box_open() if you are worried about those.

ParametersParameters

$inputFile

(string) (Required)

$outputFile

(string) (Required)

$nonce

(string) (Required)

$keypair

(string) (Required)

ReturnReturn

(bool)

SourceSource

File: wp-includes/sodium_compat/src/File.php


			
Scroll to Top