Skip to content

orm/users: replace removed stdlib crypt/legacycrypt with passlib#72

Open
midasi wants to merge 1 commit into
grommunio:masterfrom
midasi:passlib-crypt
Open

orm/users: replace removed stdlib crypt/legacycrypt with passlib#72
midasi wants to merge 1 commit into
grommunio:masterfrom
midasi:passlib-crypt

Conversation

@midasi

@midasi midasi commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Python 3.13 removed the crypt module (PEP 594). The legacycrypt fallback plugs that specific gap, but as its name suggests, it's a stopgap for the removed API rather than a forward-looking solution. This patch switches to passlib, an actively maintained password-hashing library with a pure-Python SHA-512-crypt implementation that's fully compatible with existing $6$ hashes (no migration needed) and doesn't depend on a system crypt(3) binding. The OpenBSD Blowfish path is preserved via passlib's bcrypt scheme.

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