cURL
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>" }
Decrypt data using the post-quantum private key
{ "encrypted_data": "base64encrypteddata", "private_key": "base64encodedprivatekey" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Decrypted data successfully returned