Skip to main content
POST
/
api
/
post-quantum
/
key
/
generate
Generate PQC Keys
curl --request POST \
  --url http://localhost:8000/api/post-quantum/key/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "language": "python",
  "cryptographic_scheme": "kyber"
}
'
{
  "public_key": "aSDinaTvuI8gbWludGxpZnk=",
  "private_key": "aSDinaTvuI8gbWludGxpZnk="
}

Generate Post-Quantum Cryptographic Keys

This endpoint allows you to generate a public and private key pair for post-quantum cryptographic schemes like Kyber, ML-KEM, etc.

Request Body

You must specify the cryptographic scheme and language to use.
{
  "language": "python",
  "cryptographic_scheme": "kyber"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
language
enum<string>
required
Available options:
python
cryptographic_scheme
enum<string>
required
Available options:
kyber,
mlkem

Response

Returns generated public and private keys

public_key
string<byte>
private_key
string<byte>