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

Documentation Index

Fetch the complete documentation index at: https://qg.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Decrypt Data Using Post-Quantum Cryptography

This endpoint decrypts previously encrypted data using the private key corresponding to the public key that was used for encryption.

Request Body

You must provide the encrypted data and the private key.
{
  "encrypted_data": "base64encrypteddata",
  "private_key": "base64encodedprivatekey"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
encrypted_data
string
required
private_key
string
required

Response

Decrypted data successfully returned

decrypted_data
string