"""Compare a teaching checksum with three words. Authoring did not run this file.

The checksum is not a password hash. Do not point this file at a real verifier,
a wordlist, or a credential dump. A later run, if separately authorized, may
print only the worked and activity rows in a new directory.
"""


def checksum(word):
    total = sum(word.encode("utf-8"))
    return f"{total % 100:02d}"


def main():
    print("worked stored 09")
    for word in ("hi", "no", "ok"):
        print(word, checksum(word))
    print("activity stored 12")
    for word in ("cat", "dog", "pen"):
        print(word, checksum(word))


if __name__ == "__main__":
    main()
