⚙️ 🤖 bcrypt-Hash-Modus (-H): caddy hash-password Nachbau via mkpasswd #1
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
holm.tools.public/pwgenz6c#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
███░░░░░░░████████░░██░░░░░░░░████████░░█████░░░░░Ziel
caddy hash-passwordnachbauen: bcrypt-Hash (cost 14, Caddy-Default) direkt aus pwgenz6c.Design (mit Holm abgestimmt)
mkpasswd(whois-Paket) — keine Kaskade. Admin-Tool, Admins haben das drauf oder greifbar. Probe muss verifizieren, dass Output mit$2beginnt (Busybox-mkpasswd kann kein bcrypt). Fehlt es → Fehlermeldung mit Install-Hint + Podman-Einzeiler.-H— Hash-Modus: generiert Passwort und gibt Klartext + bcrypt-Hash aus (kombinierbar mit-d,-l,-c,-n,-p)printf '%s' "$PW" | pwgenz6c -H) — Bestands-Passwort hashen, nur Hash ausgeben-i— Passwort interaktiv abfragen (silent, 2x mit Bestätigung), nur Hash ausgeben-R N— bcrypt cost (default 14 = Caddy-Default)-e— Caddyfile-Escaping$→$$$2b$(mkpasswd) ist mit Caddys bcrypt-Verify kompatibel.Umgesetzt in
5cb3432, gemerged nachdev(b5bf022). Getestet: Generate+Hash, Pipe, File-Redirect, Diceware+Hash, -n 2, Cost-Validierung, Salt-Round-trip-Verify (Hash reproduzierbar) — alles ✓. Einzig-i(TTY-Doppel-Prompt) braucht manuellen Smoke-Test.