implementation of checkpassword-compatible auth program
