Skip to content

feat(totp): flexible TOTP code generation for authenticator entries (v0.2.0) - #3

Merged
einmalmaik merged 2 commits into
mainfrom
dis/phase6-totp-flexible
Jun 12, 2026
Merged

feat(totp): flexible TOTP code generation for authenticator entries (v0.2.0)#3
einmalmaik merged 2 commits into
mainfrom
dis/phase6-totp-flexible

Conversation

@einmalmaik

Copy link
Copy Markdown
Owner

Phase 6 — letzte DIS-Lücke für die vollständige Krypto-Extraktion

Singra Vaults Authenticator-Seite rendert TOTP-Codes für importierte Dritt-Einträge (variable Algorithmen SHA1/SHA256/SHA512, 6–8 Digits, beliebige Perioden). Dafür fehlte in DIS eine flexible Generierungs-API — das war die einzige Lücke der Inventur über alle 21 verbleibenden Crypto-Dateien in Vault + Premium.

Neu (rein additiv)

  • generateTotpCode(secret, { algorithm?, digits?, period?, timestamp? })
  • buildTotpUriWithOptions(params, options) für Provisioning-URIs mit expliziten Parametern
  • TotpAlgorithm/TotpCodeOptions-Typen

Singras eigene 2FA bleibt auf dem gepinnten Parametersatz (buildTotpUri/verifyTotpCode unverändert).

Tests

8/8 totp-Tests grün, inkl. Interop-Matrix gegen rohes otpauth über alle Algorithmus/Digits/Period-Kombinationen bei fixem Timestamp. Typecheck + Lint sauber.

Version → 0.2.0 (Basis für das Phase-6-Release, danach Tag v0.2.0).

🤖 Generated with Claude Code

einmalmaik and others added 2 commits June 12, 2026 23:11
…tor entries

Adds generateTotpCode(secret, {algorithm, digits, period, timestamp}) and
buildTotpUriWithOptions so the password-manager authenticator view can render
codes for imported entries (SHA1/SHA256/SHA512, 6-8 digits, custom periods)
without touching otpauth directly. Singra's own 2FA enrolment keeps the pinned
buildTotpUri/verifyTotpCode parameter set. Bumps version to 0.2.0 for the
Phase-6 full-extraction release.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…4-m6w7-qqqr)

tsup pins a vulnerable esbuild range; the override forces the patched build
tool without downgrading tsup. Unblocks the security workflow's npm audit gate.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@einmalmaik
einmalmaik merged commit 247752e into main Jun 12, 2026
2 checks passed
@einmalmaik
einmalmaik deleted the dis/phase6-totp-flexible branch June 12, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant