Salut
il me semble que ce n'est pas MD5 qui est utilisé, mais la fonction crypt (voir man crypt

)
je pense que ça peut t'intéresser :)
[ Lien ]
ça commence par
"Problem:
We need to authenticate a user on the local linux system before he/she/it
can log on to the application and begin taking over the world. Since the
linux system uses shadow passwords, we must have a method to retrieve the
password and authenticate the user in the user shadow database. Once
authenticated, this user can work with the application."
et c'est très détaillé :)
A+
Dobel
[Une fois rien, c'est rien; deux fois rien,
ce n'est pas beaucoup, mais pour trois fois rien, on peut déjà
s'acheter quelque chose, et pour pas cher]