mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-09-13 21:05:14 -05:00
refactor: use actual known and published key
This commit is contained in:
committed by
Jennifer Taylor
parent
24eadda691
commit
40ba92cb57
@@ -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}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user