You shoule run the following file in web folder.
python restAPI.py
localhost:5000
- Encrypt
http://localhost:5000/api/ocb/encrypt
POST
{
"plaintext": "your plaintext",
"header": "your header"
}
- Decrypt
http://localhost:5000/api/ocb/decrypt
POST
{
"ciphertext": "your ciphertext",
"header": "your header",
"tag": "your tag"
}