Rust

phpass

Module

The phpass password hash used by WordPress and phpBB.

Contents

use utopia_auth::hashes::phpass::PHPass;
Rust
pub struct PHPass

The phpass password hash, as WordPress and phpBB use it: $2a$ bcrypt hashes, or $P$ portable MD5 hashes when portable_hashes is set (or bcrypt fails).

Options: type, iteration_count_log2, portable_hashes and random_state.

Also implements Default.