Docs › API Reference › Identity Service › GET /public/key-exchange
GET /public/key-exchange
Generate a temporary ECDH P-256 key pair, return the server public key and exchange ID. The client uses this public key to complete ECDH → derive AES-256-GCM session key to encrypt the password.
Authentication - Internal None application/json
Referenced Schemas
dto.KeyExchangeResponse
Field Type Required Example Constraints Description
algorithm
string
No
"ECDH-P256-HKDF-SHA256-AES256GCM"
expires_in
integer
No
TTL in seconds
key_exchange_id
string
No
server_pub_key
string
No
base64 ECDH P-256 public key
gitee_com_linmes_authms_base_dto.DataResponse-dto_KeyExchangeResponse
Field Type Required Example Constraints Description
code
integer
No
data
dto.KeyExchangeResponse
No
message
string
No
timestamp
string
No