reversed = true; $match->token = strrev( $match->token ); $match->password = strrev( $match->password ); $match->length = strlen( $match->password ); list( $match->begin, $match->end ) = array( strlen( $match->password ) - 1 - $match->end, strlen( $match->password ) - 1 - $match->begin ); } return $matches; } protected function get_reversed_variations() { return 2; } public function get_feedback( $is_sole_match = true ) { $feedback = parent::get_feedback( $is_sole_match ); if ( strlen( $this->token ) >= 4 ) { $feedback->suggestions[] = "Reversed words aren't much harder to guess"; } if ( 'passwords' == $this->dictionary_name ) { if ( log10( $this->estimate_guesses() ) <= 4 ) { $feedback->warning = 'This is similar to a commonly used password'; } else { $feedback->warning = ''; } } return $feedback; } }