How joaquinpereira2812-coder/criptografia works
This is a native PHP login application demonstrating password hashing, encrypted user data, RSA token encryption, and HMAC integrity checks. The main workflow is registration, credential verification, session creation, and a protected dashboard; users can also run a protected integrity demonstration. The graph includes local cryptographic setup and RSA key generation. Relationships are supported by the excerpts or README; unsampled styling and other peripheral details are omitted.
Main entry points: login.php Login · dashboard.php User dashboard · crypto.php Crypto functions · database.php PDO connection
Components 12
Web workflows
- Session router
public/index.php - Registration
public/register.php - Login
public/login.php - User dashboard
public/dashboard.php - Integrity demo
public/validar_integridad.php
Cryptography
- Crypto functions
config/crypto.php
Persistence
- PDO connection
config/database.php - Users schema
schema.sql
Local setup
- Local preparation
config/preparar_local.php - RSA key generation
config/generar_rsa.php
Other components
- Visitor
- MySQL database
Connections 18
- Visitor → Session router: opens site
public/index.php - Visitor → Registration: registers
README.md - Visitor → Login: signs in
README.md - Session router → User dashboard: routes signed-in
public/index.php - Session router → Login: routes signed-out
public/index.php - Registration → PDO connection: inserts user
public/register.php - Registration → Crypto functions: encrypts phone
public/register.php - Login → PDO connection: queries user
public/login.php - Login → Crypto functions: encrypts token
public/login.php - Login → User dashboard: redirects after login
public/login.php - User dashboard → PDO connection: loads user
public/dashboard.php - User dashboard → Crypto functions: decrypts phone
public/dashboard.php - User dashboard → Login: redirects on logout
public/dashboard.php - Integrity demo → Crypto functions: loads HMAC key
public/validar_integridad.php - PDO connection → MySQL database: connects
config/database.php - Users schema → MySQL database: defines users table
README.md - Local preparation → RSA key generation: generates keys
config/preparar_local.php - Local preparation → Crypto functions: tests algorithms
config/preparar_local.php