Implemented AES256-GCM encryption of all network packets. Requires some more refactoring to remove redundant code and make it cleaner.

This commit is contained in:
Jakob Friedl
2025-07-23 13:47:37 +02:00
parent 36719dd7f0
commit 0f065f41a2
16 changed files with 298 additions and 207 deletions

View File

@@ -21,7 +21,10 @@ proc register*(ctx: Context) {.async.} =
return
try:
let agentId = register(ctx.request.body.toBytes())
if not register(ctx.request.body.toBytes()):
resp "", Http400
return
resp "", Http200
except CatchableError: