ParagonIE_Sodium_File::generichash

SummerySummery

Calculate the BLAKE2b hash of a file.

Syntax

ParagonIE_Sodium_File::generichash( string $filePath, string|null $key = '', int $outputLength = 32 )

ParametersParameters

$filePath

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

$key

(string|null) (Optional) BLAKE2b key

Default value: ''

$outputLength

(int) (Optional) Length of hash output

Default value: 32

ReturnReturn

(string) BLAKE2b hash

SourceSource

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


			
Scroll to Top