cURL
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 the post-quantum public key
{ "raw_data": "data_to_encrypt", "public_key": "base64encodedpublickey" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Encrypted data successfully created