Skip to content

Instantly share code, notes, and snippets.

View jwhong's full-sized avatar

James Whong jwhong

View GitHub Profile
@jwhong
jwhong / chessboardproblem.py
Created December 5, 2020 22:38
This is demonstrating a solution to the "hiding a key in a chessboard" problem detailed here: https://www.youtube.com/watch?v=as7Gkm7Y7h4
"""
This is demonstrating a solution to the "hiding a key in a chessboard" problem detailed here:
https://www.youtube.com/watch?v=as7Gkm7Y7h4
"""
"""This function cribbed from wikipedia. Yes I know it's impossibly slow."""
def crc_remainder(input_bitstring, polynomial_bitstring, initial_filler):
"""Calculate the CRC remainder of a string of bits using a chosen polynomial.
initial_filler should be '1' or '0'.
"""