spyware/src/HtpasswdUtils.java
private static boolean isValidHtpasswd() {
        // Use regex to verify if the data from htpasswd is correct
        Pattern pattern = Pattern.compile("((.+):\\$apr1(\\$.+){2}(\\n))+");
        Matcher matcher = pattern.matcher(dataHtpasswd);
        return matcher.matches();
    }
/**
     * Verify if the dataHtpasswd attrbute is a standard Htpasswd
     *
     * @return
     */
Verify if the dataHtpasswd attrbute is a standard Htpasswd
@return
Verify if the dataHtpasswd attrbute is a standard Htpasswd @return
private static boolean isValidHtpasswd() {
        Pattern pattern = Pattern.compile("((.+):\\$apr1(\\$.+){2}(\\n))+");
        Matcher matcher = pattern.matcher(dataHtpasswd);
        return matcher.matches();
    }
private static boolean isValidHtpasswd ( ) { Pattern pattern = Pattern . compile ( "((.+):\\$apr1(\\$.+){2}(\\n))+" ) ; Matcher matcher = pattern . matcher ( dataHtpasswd ) ; return matcher . matches ( ) ; }
Verify if the dataHtpasswd attrbute is a standard Htpasswd
 @return
Verify if the dataHtpasswd attrbute is a standard Htpasswd @return
// Use regex to verify if the data from htpasswd is correct