Server Reference
security
Authentication and end-to-end encryption.
- The E2EE handshake: the server signs a nonce with its RSA key so the client can verify it, then the client sends an RSA-OAEP wrapped AES-256-GCM key.
EncryptedRouteencrypts every JSON response with the session key andget_decrypted_request_bodydecrypts request bodies.verify_tokenvalidates client-signed RS256 JWTs against the public key stored for the user.- Password hashing for public shares.
attributelogger= logging.getLogger(__name__)attributeALGORITHM= 'RS256'attributeJWT_LEEWAY_SECONDS= 60attributeHANDSHAKE_PATHS= ('/api/handshake/initiate', '/api/handshake/exchange')attributeIDEMPOTENCY_TTL_SECONDS= 600