bookworm
|
b06f6cc582
|
feat: 打包脚本 + pkg 路径兼容修复
build.ps1:
- auto-setup.ps1 → dist/Bookworm-Setup.exe (PS2EXE, 无控制台窗口)
- gen-authcode.js → dist/gen-authcode.exe (pkg, 内嵌 Node.js)
- 自动安装依赖 (PS2EXE / pkg),输出大小提示
gen-authcode.js:
- SCRIPT_DIR 兼容 pkg 打包环境 (process.pkg → process.execPath)
.gitignore:
- 新增 dist/ (EXE 输出目录,不提交二进制)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-07 00:01:46 +08:00 |
|
bookworm
|
b83c508c22
|
feat: replace master password auth with time-limited authorization codes
Auth codes use format BW-YYYYMMDD-TOKEN (24-hex, 96-bit entropy).
Token doubles as the AES-256-CBC decryption key for secrets.enc.
Expiry is enforced client-side; format/expiry errors don't consume
the 3 valid-attempt quota.
- gen-authcode.js: new admin tool — generates BW auth code + re-encrypts secrets.enc
- install.ps1: Parse-AuthCode validates format/expiry, Decrypt-Secrets uses token as key
- auto-setup.ps1: Show-AuthCodeDialog WinForms input + Parse-AuthCode-GUI loop
- Bookworm-Setup.sh: parse_authcode() bash function + while-loop with format/expiry handling
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-06 22:47:04 +08:00 |
|