ParagonIE_Sodium_Compat::crypto_box_keypair

SummerySummery

Generate a new random X25519 keypair.

Syntax

ParagonIE_Sodium_Compat::crypto_box_keypair()

ReturnReturn

(string) A 64-byte string; the first 32 are your secret key, while the last 32 are your public key. crypto_box_secretkey() and crypto_box_publickey() exist to separate them so you don't accidentally get them mixed up!

SourceSource

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


			
Scroll to Top