From sshd logs, find IPs with ≥3 failures, SHA-1 hash each, print 'ip:hash' sorted by IP.
Bring it all together. Stdin is a stream of sshd `Failed password for <user> from <ip> port <n>` lines.
Steps:
1. Parse every line and tally failures per IP (regex hint: `from (\S+)`).
2. Keep only IPs with **≥ 3** failures.
3. For each kept IP, compute the SHA-1 hex digest of the IP **string** (e.g. `hashlib.sha1(b"10.0.0.5").hexdigest()`).
4. Print one line per IP, format `ip:hash`, sorted by IP ascending.
Expected for the test input:
```
10.0.0.5:00d735369988d4bbd0d404a166a6f8b871027763
10.0.0.7:dcbab0fa384119ebe5a81c966bc7f1ab1b15a2e6
```
Sign in to save your code and track progress across devices.