public object Part1(string input) { HashSet <Vector2> used = new HashSet <Vector2>(); for (int y = 0; y < 128; y++) { string bits = String.Concat(KnotHash.Calculate($"{input}-{y}").Select(static s => Convert.ToString(s, 2).PadLeft(8, '0')));
public object Part2(string input) { return(String.Concat(KnotHash.Calculate(input).Select(static x => $"{x:X2}".ToLower())));