openssl_dh_compute_key

Supported Versions: PHP 5 >= 5.3.0, PHP 7, PHP 8
Computes shared secret for public value of remote DH public key and local DH key
openssl_dh_compute_key(string $public_keyOpenSSLAsymmetricKey $private_key): string|false