mirror of
https://github.com/kccleoc/seedpgp-web.git
synced 2026-03-07 01:47:52 +08:00
fix(krux): add decompression for Base43 QR codes
Implements zlib decompression for encrypted Krux QR codes, resolving the final decryption failure. - Adds `pako` as a dependency to handle zlib (deflate/inflate) operations in JavaScript. - Overhauls `krux.ts` to be a more complete port of the `kef.py` logic. - `VERSIONS` constant is updated to include `compress` flags. - `KruxCipher.decrypt` now checks the KEF version and uses `pako.inflate` to decompress the plaintext after decryption, matching the behavior of the official Krux implementation. - This fixes the bug where correctly identified and decoded Krux payloads still failed to produce a valid mnemonic.
This commit is contained in:
@@ -10,9 +10,11 @@
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/pako": "^2.0.4",
|
||||
"html5-qrcode": "^2.3.8",
|
||||
"lucide-react": "^0.462.0",
|
||||
"openpgp": "^6.3.0",
|
||||
"pako": "^2.1.0",
|
||||
"qrcode": "^1.5.4",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
|
||||
Reference in New Issue
Block a user