Skip to content

[WIP] mcf: Modular Crypt Format implementation #1855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Jun 3, 2025

Initial implementation of the MCF pseudo-format as described at: https://passlib.readthedocs.io/en/stable/modular_crypt_format.html

Note that MCF is less a specification than an ad hoc set of conventions.

As MCF lacks the kind of rigidly specified sizes of its various components, a heapless no_std implementation isn't really possible like it is with the PHC format, and so this implementation has a hard dependency on alloc (though it should be possible to extract an alloc-free reference type which borrows from its input).

@tarcieri tarcieri force-pushed the mcf branch 2 times, most recently from ce29209 to ff1e5c2 Compare June 3, 2025 02:29
Comment on lines +58 to +59
/// Get an iterator over the parts of the password hash as delimited by `$`, including the
/// initial identifier.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it shouldn't include the initial identifier?

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