ParagonIE_Sodium_File::sign

SummerySummery

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

Syntax

ParagonIE_Sodium_File::sign( string $filePath, string $secretKey )

ParametersParameters

$filePath

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

$secretKey

(string) (Required) Secret signing key

ReturnReturn

(string) Ed25519 signature

SourceSource

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


			
Scroll to Top