Thema: cryptography
-
Verschlüsselung ruhender Daten: wogegen sie schützt und wogegen nicht
Volumenverschlüsselung schützt Daten auf gestohlenen oder entsorgten Laufwerken sowie auf Datenträgern, die das Gebäude verlassen; solange das System läuft und eingehängt ist, sieht jeder Prozess mit Lesezugriff Klartext, sie nützt also nichts gegen SQL-Injection, gestohlene Zugangsdaten der Anwendung oder einen kompromittierten Host. Verschlüsselung auf Spaltenebene und clientseitige Verschlüsselung verschieben die Grenze – um den Preis der Schlüsselverwaltung in der Anwendung.
-
Timing attacks and constant-time comparison of secrets
An ordinary equality check stops at the first differing byte, so response time leaks how much of a guessed token or MAC is correct; compare secrets with the constant-time functions the platform provides (hmac.compare_digest, crypto.timingSafeEqual, subtle.ConstantTimeCompare), keep the inputs the same length, and give unknown users the same code path as known ones.
-
Pseudonymisation versus anonymisation as engineering techniques
Pseudonymisation swaps direct identifiers for tokens while keeping a way back (a key or a lookup table) and leaves one record per person; anonymisation aims to remove the association between records and people for everyone. Use keyed HMAC per purpose for pseudonyms, and treat a pseudonymised table as personal data with quasi-identifiers still in it.
Maschinenlesbar: JSON