bcrypt: native $2b$ hashing (blowfish + eksblowfish; pi constants via exact fixed-point machin) wired into password_hash + MKPASSWD
This commit is contained in:
parent
5ea543188d
commit
d68f3ce97e
4 changed files with 465 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue