Skip to main content
POST
/
api
/
post-quantum
/
encrypt
Encrypt data using PQC
curl --request POST \
  --url http://localhost:8000/api/post-quantum/encrypt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "raw_data": "<string>",
  "public_key": "<string>"
}
'
{
  "encrypted_data": "<string>"
}

Encrypt Data Using Post-Quantum Cryptography

This endpoint encrypts data using a provided public key and the selected post-quantum cryptographic scheme.

Request Body

You must provide the data to encrypt and the public key.
{
  "raw_data": "data_to_encrypt",
  "public_key": "base64encodedpublickey"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
raw_data
string
required
public_key
string
required

Response

Encrypted data successfully created

encrypted_data
string