哈希空间 Ctrl + F 进行搜索
首页 php手册中文版 CSS中文手册 哈希文档 Markdown在线工具

PHP sodium 组件

sodium_crypto_sign_ed25519_pk_to_curve25519

(PHP 7 >= 7.2.0, PHP 8)

sodium_crypto_sign_ed25519_pk_to_curve25519Convert an Ed25519 public key to a Curve25519 public key

说明

sodium_crypto_sign_ed25519_pk_to_curve25519(string $public_key): string

Given an Ed25519 public key, calculate the birationally equivalent X25519 public key.

参数

public_key

Public key suitable for the crypto_sign functions.

返回值

Public key suitable for the crypto_box functions.

打开 哈希空间 微信小程序中查看更佳