<commit_before><?php namespace Completionistv2;

class PasswordHelper
{
    const SECRET = "Completionist project --- 2017/02/16@2100UTC-6";

    public static function encode($password)
    {
        return base64_encode(hash_hmac("sha256", $password, self::SECRET, false));
    }

    public static function check($password, $hash)
    {
        return hash_equals(base64_decode($hash), base64_decode(static::encode($password)));
    }
}
<commit_msg>Update secret for hmac_sha256<commit_after><?php namespace Completionistv2;

class PasswordHelper
{
    const SECRET = "Completionist project --- 2017/02/16@2127UTC-6 --- dqgb5&HP4J@Dn5gQwZ5oD8!KW!u2xXqu";

    public static function encode($password)
    {
        return base64_encode(hash_hmac("sha256", $password, self::SECRET, false));
    }

    public static function check($password, $hash)
    {
        return hash_equals(base64_decode($hash), base64_decode(static::encode($password)));
    }
}

{'fraction_non_alphanumeric': 0.12852664576802508, 'fraction_numerical': 0.05747126436781609, 'mean_word_length': 4.178378378378379, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5487112', 'n_tokens_mistral': 342, 'n_tokens_neox': 308, 'n_words': 58}