ParagonIE_Sodium_Compat::crypto_sign

Advertisement

Summery Summery

Returns a signed message. You probably want crypto_sign_detached() instead, which only returns the signature.

Syntax Syntax

ParagonIE_Sodium_Compat::crypto_sign( string $message, string $secretKey )

Description Description

Algorithm: Ed25519 (EdDSA over Curve25519)

Parameters Parameters

$message

(string) (Required) Message to be signed.

$secretKey

(string) (Required) Secret signing key.

Return Return

(string) Signed message (signature is prefixed).

Source Source

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


			

Advertisement

Advertisement

Leave a Reply

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