Files
Password-Manager/.gitignore
T
r-zakarya 5fc07aed7a refactor(js): extract TOTP module + add RFC 6238 tests (§3.1)
Fourth slice of the app.js split. Moves TOTP (base32Decode, generateTOTP,
parseOtpAuthUri) plus the TOTP-secret and custom-field AES-GCM wrappers to
js/app.totp.js. Loads before app.js (pure declarations), after app.crypto.js
(uses encryptPwd/decryptPwd). Also called by app.import.js and app.sync.js
via shared global scope.

- Byte-for-byte identical extraction; no duplicate const; syntax OK on all
  five app parts.
- NEW: js/tests/totp.test.js — 13 tests including the 5 RFC 6238 Appendix B
  reference vectors (generateTOTP reads Date.now(), so each case stubs the
  sandbox clock to the vector's fixed time), base32 decode edge cases, and
  parseOtpAuthUri. Extraction AND new coverage in one slice.
- Suite: 42 → 55 tests, all green.
- Assets regenerated (manifest now embeds all 6 ordered JS files:
  argon2 → crypto → totp → import → app → sync); also fixes the previous
  import commit's not-yet-rebuilt manifest.
- Delphi build artifacts (*.vrc, *.$manifest) gitignored.

app.js: 11936 → 10138 lines (4 modules extracted, ~1800 lines).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-05 16:35:29 +01:00

63 lines
1.1 KiB
Plaintext

vault-error.log
# Vault database — contains user secrets (encrypted but still secret).
# Auto-created on first run by the Delphi/PHP backend via InitDatabase().
# Never track this file. Use vault.db.example for schema reference if needed.
vault.db
vault.db-journal
vault.db-wal
vault.db-shm
# Delphi build artifacts
*.dcu
*.dcp
*.dpu
*.local
*.identcache
*.dsk
*.~dsk
*.~*
*.~bpl
*.~dll
*.~exe
*.exe
*.dll
*.bpl
*.so
*.dylib
__history/
__recovery/
Win32/
Win64/
OSX64/
Android/
iOSDevice64/
# Debug logs (created at runtime next to the exe)
pm-debug.log
# Asset build log (regenerated by BuildAssets.cmd/ps1)
delphi-backend/assets/build.log
# Local-only debug / packaging artefacts next to the exe.
delphi-backend/build.log
delphi-backend/config.txt
delphi-backend/PMServer.rar
# Quick-unlock DPAPI blob — device-bound, MUST NOT be committed.
delphi-backend/quickunlock.bin
# Vault backup copies users keep next to the exe while testing.
delphi-backend/vault*.db
delphi-backend/vault - Copie*.db
# Screenshots / scratch images dropped in the repo root during dev.
*.png
*.jpg
*.jpeg
# Delphi build artifacts
delphi-backend/*.vrc
delphi-backend/*.$manifest