ParagonIE_Sodium_Compat::crypto_scalarmult

SummerySummery

Calculate the shared secret between your secret key and your recipient’s public key.

Syntax

ParagonIE_Sodium_Compat::crypto_scalarmult( string $secretKey, string $publicKey )

DescriptionDescription

Algorithm: X25519 (ECDH over Curve25519)

ParametersParameters

$secretKey

(string) (Required)

$publicKey

(string) (Required)

ReturnReturn

(string)

SourceSource

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


			
Scroll to Top