refactor: use actual known and published key

This commit is contained in:
nullableVoidPtr
2023-01-29 21:49:48 +08:00
committed by Jennifer Taylor
parent 24eadda691
commit 40ba92cb57
2 changed files with 9 additions and 351 deletions

View File

@@ -20,11 +20,11 @@ class TestCardCipher(unittest.TestCase):
for pair in test_ciphers:
inp = bytes(pair[0])
out = bytes(pair[1])
encoded = CardCipher._encode(inp)
encoded = CardCipher.INTERNAL_CIPHER.encrypt(inp)
self.assertEqual(
encoded, out, f"Card encode {encoded!r} doesn't match expected {out!r}"
)
decoded = CardCipher._decode(out)
decoded = CardCipher.INTERNAL_CIPHER.decrypt(out)
self.assertEqual(
decoded, inp, f"Card decode {decoded!r} doesn't match expected {inp!r}"
)