Telethon/client/tests/rsa_test.py
2023-07-08 13:04:20 +02:00

16 lines
357 B
Python

from telethon._impl.crypto.rsa import (
PRODUCTION_RSA_KEY,
TESTMODE_RSA_KEY,
compute_fingerprint,
)
def test_fingerprint_1() -> None:
fp = compute_fingerprint(PRODUCTION_RSA_KEY)
assert fp == -3414540481677951611
def test_fingerprint_2() -> None:
fp = compute_fingerprint(TESTMODE_RSA_KEY)
assert fp == -5595554452916591101