<commit_before>import scrypt from 'scrypt';

export function createPassHash(salt, password) {
  return scrypt.hashSync(password, { N: 16384, r: 8, p: 1 }, 64, new Buffer(salt)).toString('hex');
}

export function checkPassword(salt, password, passhash) {
  console.error(`For ${salt} and ${password} with ${passhash} should be
    ${createPassHash(salt, password)}`);<commit_msg>Removing logging<commit_after>import scrypt from 'scrypt';

export function createPassHash(salt, password) {
  return scrypt.hashSync(password, { N: 16384, r: 8, p: 1 }, 64, new Buffer(salt)).toString('hex');
}

export function checkPassword(salt, password, passhash) {
{'fraction_non_alphanumeric': 0.14660493827160495, 'fraction_numerical': 0.027777777777777776, 'mean_word_length': 6.459770114942529, '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': '1823968', 'n_tokens_mistral': 224, 'n_tokens_neox': 200, 'n_words': 58}