Files
securebit-chat/doc/CRYPTOGRAPHY.md
T

27 lines
1.2 KiB
Markdown
Raw Normal View History

# Cryptography and Verification
2025-08-14 04:01:08 -04:00
## Release context
2025-08-14 04:01:08 -04:00
- Product release: `v4.8.5`
- Protocol version: `4.1`
2025-08-14 04:01:08 -04:00
## Session establishment
2025-08-14 04:01:08 -04:00
SecureBit.chat uses ECDH-derived session material, DTLS-protected WebRTC transport, and a mandatory Short Authentication String (SAS) verification step.
2025-08-14 04:01:08 -04:00
The SAS is deterministic for both peers in the same authenticated session. Users compare the displayed code through an out-of-band channel and enter the matching code manually. Local success alone is insufficient: the session becomes verified only after both peers confirm.
2025-08-14 04:01:08 -04:00
## Message protection
2025-09-04 17:25:01 -04:00
- encrypted payloads are validated before decryption
- decrypted chat text is sanitized before entering React state or the UI
- replay and ordering controls remain part of the session layer
2025-09-04 17:25:01 -04:00
## Local key metadata
2025-09-04 17:25:01 -04:00
Sensitive IndexedDB metadata is stored in encrypted envelopes. Legacy plaintext metadata remains readable through a migration path and is re-written in encrypted form when accessed. Corrupted encrypted metadata fails closed.
2025-09-04 17:25:01 -04:00
## Scope note
2025-09-04 17:25:01 -04:00
This document describes the current browser implementation behavior relevant to the v4.8.5 hardening release. It does not replace independent cryptographic review.