Onyscribe Admin: Initialer Stand
Admin-Plattform für die Tenants von Onyscribe: Editor mit Live-Vorschau (echter Core in Sandbox), Versionen, KI-Agent (Cortecs), OIDC-Abgleich über die Login-Developer-API, Deploy-Engine (Mittwald, gesperrt ohne DEPLOY_LIVE, Freigabe pro Tenant), Core-Vertrag (Schema/Manifest), Core-Releases mit Kompatibilitätsprüfung, Canary-Rollout und Rollback, Zustandsabgleich. Runbook: docs/RUNBOOK_PARALLELTEST.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
15
app/services/crypto.py
Normal file
15
app/services/crypto.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from cryptography.fernet import Fernet
|
||||
|
||||
from app.settings import SECRET_KEY
|
||||
|
||||
_f = Fernet(SECRET_KEY.encode())
|
||||
|
||||
|
||||
def encrypt(v: str) -> str:
|
||||
return _f.encrypt(v.encode()).decode()
|
||||
|
||||
|
||||
def decrypt(v: str) -> str:
|
||||
return _f.decrypt(v.encode()).decode()
|
||||
Reference in New Issue
Block a user