Logo

Cake Planner

Backend

Backend Security

This document outlines the security measures implemented in the Cake Planner Backend to protect user data, ensure integrity, and prevent common vulnerabilities.


Table of Contents


1. Authentication & Authorization

JSON Web Tokens (JWT)

The application uses JWT (JSON Web Tokens) for stateless authentication.

Role-Based Access Control (RBAC)

2. Password Security

User passwords are never stored in plain text.

Hashing Algorithm: Argon2id

The application uses Argon2id, the winner of the Password Hashing Competition (PHC) and currently recommended by OWASP.

3. Data Protection

SQL Injection Prevention

All database interactions via DatabaseManager and Models use Prepared Statements (via QSqlQuery).

Input Validation

4. Transport Security

HTTPS / TLS

The Crow server runs on HTTP internally (default port 8080).

CORS (Cross-Origin Resource Sharing)

5. Security Best Practices