Skip to content

base64ct: add Base64Pbkdf2#2168

Merged
tarcieri merged 1 commit intomasterfrom
base64ct/pbkdf2-alphabet
Jan 12, 2026
Merged

base64ct: add Base64Pbkdf2#2168
tarcieri merged 1 commit intomasterfrom
base64ct/pbkdf2-alphabet

Conversation

@tarcieri
Copy link
Copy Markdown
Member

@tarcieri tarcieri commented Jan 12, 2026

This is an alphabet used with PBKDF2 Modular Crypt Format (MCF) password hash strings.

It's a variant of the unpadded standard Base64 alphabet which uses . in place of the usual +.

Some example hashes can be found here:

https://github.com/hlandau/passlib/blob/8f820e0/hash/pbkdf2/pbkdf2_test.go

Also adds a Base64::Pbkdf2 to the mcf crate.

This is an alphabet used with PBKDF2 Modular Crypt Format (MCF) password
hash strings.

It's a variant of the unpadded standard Base64 alphabet which uses
`.` in place of the usual `+`.

Some example hashes can be found here:

https://github.com/hlandau/passlib/blob/8f820e0/hash/pbkdf2/pbkdf2_test.go

Also adds a `Base64::Pbkdf2` to the `mcf` crate.
@tarcieri tarcieri force-pushed the base64ct/pbkdf2-alphabet branch from 7d2fa99 to a2b37fd Compare January 12, 2026 04:01
@tarcieri tarcieri merged commit 51726c2 into master Jan 12, 2026
60 checks passed
@tarcieri tarcieri deleted the base64ct/pbkdf2-alphabet branch January 12, 2026 04:09
tarcieri added a commit that referenced this pull request Jan 12, 2026
This is an alphabet used with PBKDF2 Modular Crypt Format (MCF) password
hash strings.

It's a variant of the unpadded standard Base64 alphabet which uses
`.` in place of the usual `+`.

Some example hashes can be found here:

https://github.com/hlandau/passlib/blob/8f820e0/hash/pbkdf2/pbkdf2_test.go

Also adds a `Base64::Pbkdf2` to the `mcf` crate.
@tarcieri tarcieri mentioned this pull request Jan 12, 2026
tarcieri added a commit that referenced this pull request Jan 12, 2026
### Added
- `Base64Pbkdf2` alphabet (#2168)
tarcieri added a commit to RustCrypto/password-hashes that referenced this pull request Jan 12, 2026
Use support for PBKDF2's special Base64 alphabet now natively
implemented in the `base64ct` and `mcf` crates in
RustCrypto/formats#2168.
tarcieri added a commit to RustCrypto/password-hashes that referenced this pull request Jan 12, 2026
Use support for PBKDF2's special Base64 alphabet now natively
implemented in the `base64ct` and `mcf` crates in
RustCrypto/formats#2168.
@tarcieri tarcieri mentioned this pull request Mar 8, 2026
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