mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-14 21:46:38 +03:00
16 lines
357 B
Python
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
|