python app.py
or using Docker:
docker compose -f docker-compose.yml up
Description of router methods:
Encryption methods:
/encrypt/rsa
- implementation of RSA algorithm/encrypt/aes
- implementation of AES algorithm/encrypt/kuznechik
- implementation of Kuznechik algorithm/encrypt/magma
- implementation of Magma algorithm
Accepts json in format:
{
"key": "some key",
"body": "some body"
}
Returns JSON as response (example for aes algorithm):
{
"body": "\\x98\\xd1(\\xdb\\x02\\x16\\x0f\\x05\\x11\\x1af\\xf5\\xe1\\xeb\\x8f6\\x8b/\\x08>l\\xbe;\"m[\\xf3v\\x1a\\xc1\\xe2\\xc6"
}
Decryption methods:
/json/message/
- method for searching encryption algorithm.
Accepts json in format:
{
"key": "some key",
"body": "some body"
}
Returns:
{
"info": "some info"
}