(int) trim(filter_var($algo, FILTER_SANITIZE_NUMBER_INT), '+-'), 'length' => (int)strlen($hash), 'word' => $testWord, 'hash' => $hash, ]; } file_put_contents('sha_hashes.json', json_encode($result, JSON_PRETTY_PRINT));