bcrypt: native $2b$ hashing (blowfish + eksblowfish; pi constants via exact fixed-point machin) wired into password_hash + MKPASSWD

This commit is contained in:
Jean Chevronnet 2026-08-11 11:32:35 +00:00
parent 5ea543188d
commit d68f3ce97e
4 changed files with 465 additions and 1 deletions

View file

@ -20,6 +20,9 @@ fn main() {
.unwrap_or_else(|| "echoircd.conf".to_string());
let cfg = Config::load(&path);
// precompute the bcrypt constants off-thread so the first hash never stalls the core
thread::spawn(echoircd::bcrypt::warm);
// Client plaintext connections run on the mio reactor, so bind a mio listener
// (fail fast if the main port is taken).
let bind_addr: std::net::SocketAddr = match cfg.bind.parse() {