This is just a concept I have, no guarantees that it will be 100% secure, but might be secure enough for me to publish this. Written in python.
Get Python winget install python -s winget or sudo apt install python3.12
Download the source
Extract source
Install Requirements pip install -r requirements.txt
Get A Key python genkey.py
Register Key At python auther.py
Check auth token with python checker.py
Both server and client gets the same public and private key, server does it's own auth token generation and checks with the client's auth token if matches.
Auth tokens expire after 10 seconds after generation
Registration Of Public & Private Keys Expire After 10 Minutes