Repository navigation
Commit a114c96
Use @profullstack/encrypt for message encryption (0.5.7, qc 0.4.5) (#290)
PostQuantumEncryptionService.encryptForRecipient/decryptFromSender keep
qrypt.chat's key handling (header stripping, size checks, 1024/768 key
choice, legacy field names, friendly results) and hand the cipher itself
(ML-KEM + HKDF-SHA-256 + ChaCha20-Poly1305, v3 envelope) to the shared
library. The web app, qc, its MCP server and the CLI login handoff all go
through these two methods. ~240 lines of duplicated crypto removed.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent a766d26 commit a114c96
5 files changed
Lines changed: 158 additions & 322 deletions
File tree
- packages/qryptchat
- src/lib/crypto
- tests/crypto
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments