╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ User.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
37 pub const password_hash_max_len = bcrypt.hash_length * 2; 38 39 pub fn hashPassword( 40 password: []const u8, 41 out: []u8, 42 io: std.Io, 43 ) ![]const u8 { 44 return bcrypt.strHash(password, .{ 45 .params = bcrypt.Params.owasp, 46 .encoding = .phc, 47 }, out, io); 48 } 49