<commit_before>package securesocial.utils;

import play.Play;
import securesocial.plugin.SecureSocialPlugin;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class BCryptPasswordHasher {

    public static String passwordHash(String password) {
	return BCrypt.hashpw(password, BCrypt.gensalt());
    }

    public static boolean verifyPasswordHash(String candidate, String storedHash) {
	return BCrypt.checkpw(candidate, storedHash);
    }


}<commit_msg>BCryptPasswordHasher implements PasswordHasher interface for plugin to work correctly<commit_after>package securesocial.utils;

import play.Play;
import securesocial.plugin.SecureSocialPlugin;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class BCryptPasswordHasher implements PasswordHasher{

    public String passwordHash(String password) {
	return BCrypt.hashpw(password, BCrypt.gensalt());
    }

    public boolean verifyPasswordHash(String candidate, String storedHash) {
	return BCrypt.checkpw(candidate, storedHash);
    }


}
{'fraction_non_alphanumeric': 0.0768526989935956, 'fraction_numerical': 0.0, 'mean_word_length': 6.012820512820513, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4035560', 'n_tokens_mistral': 305, 'n_tokens_neox': 293, 'n_words': 70}