Skip to content

Commit a114c96

Browse files
ralyodioclaude
andauthored
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

‎bun.lock‎

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "qryptchat-web",
33
"private": true,
4-
"version": "0.5.6",
4+
"version": "0.5.7",
55
"type": "module",
66
"bin": {
77
"qc": "./bin/qc.js",
@@ -60,6 +60,7 @@
6060
"@noble/ciphers": "^2.0.0",
6161
"@noble/hashes": "^2.0.0",
6262
"@profullstack/autoblog": "github:profullstack/autoblog#75e54af77cbcf61dbd90fb3ed529c1b2dad1ed6f",
63+
"@profullstack/encrypt": "^0.1.0",
6364
"@profullstack/pairux-embed": "^0.1.0",
6465
"@profullstack/stack": "^0.1.3",
6566
"@profullstack/text-type-detection": "^1.0.0",

‎packages/qryptchat/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@profullstack/qryptchat",
3-
"version": "0.4.4",
3+
"version": "0.4.5",
44
"description": "qc: qrypt.chat in your terminal. A full-screen end-to-end encrypted chat client (ML-KEM-1024), plus a scriptable CLI and an MCP server.",
55
"type": "module",
66
"bin": {
@@ -17,6 +17,7 @@
1717
},
1818
"dependencies": {
1919
"@noble/ciphers": "^2.0.0",
20+
"@profullstack/encrypt": "^0.1.0",
2021
"@profullstack/hqtui": "^0.9.0",
2122
"mlkem": "^2.5.0"
2223
},

0 commit comments

Comments
 (0)