DJB-compatible checkpassword for phpBB MySQL user database, used for Dovecot IMAP