A stable, non-secret tag for a Telegram code (the code itself is a credential).
(code: str)
| 564 | |
| 565 | |
| 566 | def _anon(code: str) -> str: |
| 567 | """A stable, non-secret tag for a Telegram code (the code itself is a credential).""" |
| 568 | return "tg-" + hashlib.sha256(code.encode()).hexdigest()[:8] |
| 569 | |
| 570 | |
| 571 | # --- The two routes: IN and OUT --- |
no outgoing calls
no test coverage detected