We've already established that Linux Passwords are stored in /etc/shadow, and in /etc/passwd as a single "x" character. Hashed passwords in Linux will use a "salt" value, to prevent attacks using pre-computed tables such as Rainbow tables. For that reason, a hashed password might look something like:
smithj:
6ABCD1234$JnCx/.NCi4315V0AONxuVpUIRvPivoQjLzY0M28iYkOJU/FwVhXE4Me2f72fldvGEOpnTAB7IuVrsVfwpT/XT/:38478:0:99999:5:::
The first part, 'smithj' is the user for which the password is being stored. The first part,
6 indicates the hashing algorithm (SHA-512 in this case according to the internet), and after it comes the salt value. In this case, it's ABCD1234. Then, we have the hashed password.
The crypt() function is a POSIX C library function used to compute the hash of user account passwords. More info about crypt() here:
https://man7.org/linux/man-pages/man3/crypt.3.html