feat(security): T16 finalize security services exports

- Add __init__.py with all security service exports
- Export EncryptionService, JWT utilities, Password functions, Token functions
- 70 total tests for security services
- 100% coverage on all security modules
- All imports verified working
This commit is contained in:
Luca Sacchi Ricciardi
2026-04-07 12:14:16 +02:00
parent 649ff76d6c
commit a698d09a77
2 changed files with 54 additions and 6 deletions

View File

@@ -0,0 +1,44 @@
"""Security services for OpenRouter Monitor.
This package provides cryptographic and security-related services:
- EncryptionService: AES-256-GCM encryption for sensitive data
- Password hashing: bcrypt for password storage
- JWT utilities: Token creation and verification
- API token generation: Secure random tokens with SHA-256 hashing
"""
from openrouter_monitor.services.encryption import EncryptionService
from openrouter_monitor.services.jwt import (
TokenData,
create_access_token,
decode_access_token,
verify_token,
)
from openrouter_monitor.services.password import (
hash_password,
validate_password_strength,
verify_password,
)
from openrouter_monitor.services.token import (
generate_api_token,
hash_token,
verify_api_token,
)
__all__ = [
# Encryption
"EncryptionService",
# JWT
"TokenData",
"create_access_token",
"decode_access_token",
"verify_token",
# Password
"hash_password",
"verify_password",
"validate_password_strength",
# Token
"generate_api_token",
"hash_token",
"verify_api_token",
]