I am trying to generate a salted md5 hash in C with the propper format "$1$salt$hash" for the /etc/shadow file.
I am not quite sure if $1$ should be part of the salt or not? Right now I use the following code to generate a salt and create the passwort using crypt()