ParagonIE_Sodium_File::secretbox

SummerySummery

Encrypt a file (rather than a string). Uses less memory than ParagonIE_Sodium_Compat::crypto_secretbox(), but produces the same result.

Syntax

ParagonIE_Sodium_File::secretbox( string $inputFile, string $outputFile, string $nonce, string $key )

ParametersParameters

$inputFile

(string) (Required) Absolute path to a file on the filesystem

$outputFile

(string) (Required) Absolute path to a file on the filesystem

$nonce

(string) (Required) Number to be used only once

$key

(string) (Required) Encryption key

ReturnReturn

(bool)

SourceSource

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


			
Scroll to Top