Password hashing transforms a submitted password into a one-way value for storage and later verification. The original password cannot be reconstructed from the hash. section 8.3
A registration handler applies the technique in this sequence:
- Receive the registration form through the POST /register route. section 8.3
- Use the Argon2 library to hash the submitted password, supplying a salt to construct the hash. section 8.3
- Persist the resulting value with the user record rather than retaining the recoverable password. section 8.3
Tutor registration
A Rust Actix Web handler reads TutorRegisterForm, checks that the password and confirmation match, hashes the password with Argon2, and continues registration. Successful registration produces a tutor identifier; invalid input produces messages such as “Passwords do not match.”




