Clone of the libpam portion of Google's 2 factor auth code