spyware/src/HtpasswdUtils.java
public static boolean compareCredential(String login, String password) {
        if (isSetup()) {
            // Get salt from apr1 hashed by login
            String salt = getSaltFromLogin(login);
            String hash = Md5Crypt.apr1Crypt(password, salt);
            if (dataHtpasswd.contains(login + ":" + hash)) {
                return true;
            }
        }
        return false;
    }
/**
     * Compare login and password with hash from htpsswd
     *
     * @param login
     * @param password
     * @return boolean
     */
Compare login and password with hash from htpsswd
@param login
@param password
@return boolean
Compare login and password with hash from htpsswd @param login @param password @return boolean
public static boolean compareCredential(String login, String password) {
        if (isSetup()) {
            String salt = getSaltFromLogin(login);
            String hash = Md5Crypt.apr1Crypt(password, salt);
            if (dataHtpasswd.contains(login + ":" + hash)) {
                return true;
            }
        }
        return false;
    }
public static boolean compareCredential ( String login , String password ) { if ( isSetup ( ) ) { String salt = getSaltFromLogin ( login ) ; String hash = Md5Crypt . apr1Crypt ( password , salt ) ; if ( dataHtpasswd . contains ( login + ":" + hash ) ) { return true ; } } return false ; }
Compare login and password with hash from htpsswd
 @param login
 @param password
 @return boolean
Compare login and password with hash from htpsswd @param login @param password @return boolean
// Get salt from apr1 hashed by login