mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-22 05:22:24 -05:00
11 lines
264 B
Python
11 lines
264 B
Python
|
from __future__ import with_statement
|
||
|
import hashlib
|
||
|
|
||
|
with open("user_emails.txt", "r") as f:
|
||
|
emails = f.read().strip().split('\n')
|
||
|
|
||
|
sha1s = [hashlib.sha1(e).hexdigest() for e in emails]
|
||
|
|
||
|
with open("user_sha1s.txt", "w") as f:
|
||
|
f.write("\n".join(sha1s) + "\n")
|