liveBook · Manning

Argon2

As explained in Rust Servers, Services, and Apps

argon2 is a password-hashing library implementing the Argon2 key-derivation algorithm.

Argon2 is used in tutor registration to store password hashes instead of cleartext passwords, supporting later authentication. section 8.3

Tutor registration

When a tutor submits registration credentials, the application uses Argon2 hashes for storage in Postgres alongside the tutor ID and username. section 8.3

sqlx = {version = "0.3.5", default_features = false, features =
["postgres","runtime-tokio", "macros"]}
rust-argon2 = "0.8.3"
awc = "2.0.3"

The dependency listing identifies the Rust crate and version used for password hashing. section 8.3

How Rust Servers, Services, and Apps covers it

How deep it goes
Describes its storage role but gives no hashing API, configuration, or algorithm internals.
Examples
Uses tutor registration credentials stored with tutor IDs and usernames in Postgres.
What it assumes
Assumes familiarity with Postgres and Actix, with earlier material available as a refresher.
What you can do after
Apply it via rust-argon2 to store password hashes instead of cleartext credentials.
How it connects
Connects password hashing to user registration, credential storage, and Postgres.

Also explained in

Compare how 2 books explain Argon2 →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Rust Servers, Services, and Apps. The section links point to the parts of the book it draws on.