This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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'. | |
""" |