_libpam.c and libpam.c are PAM implementations
gen_pwd.py generates SHA512 hash for a given password using random salt
auth.py authenticates the incoming username and (clear text) password using libpam.c