ParagonIE_Sodium_File::box

Advertisement

Summery Summery

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

Syntax Syntax

ParagonIE_Sodium_File::box( string $inputFile, string $outputFile, string $nonce, string $keyPair )

Parameters Parameters

$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

$keyPair

(string) (Required) ECDH secret key and ECDH public key concatenated

Return Return

(bool)

Source Source

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


			

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.