The annoying part of this is that it is not very easy at all to either (1) hash a password as passwd would do it (by using pam apis) or (2) figure out what algorithm pam is using to hash passwords (it's in /etc/pam.d/common-password but not in a very friendly way).
The annoying part of this is that it is not very easy at all to either (1) hash a password as passwd would do it (by using pam apis) or (2) figure out what algorithm pam is using to hash passwords (it's in /etc/pam. d/common- password but not in a very friendly way).