mirror of
https://github.com/bvanroll/odiseectf.git
synced 2025-08-29 11:52:43 +00:00
19 lines
340 B
Python
19 lines
340 B
Python
import hashlib
|
|
|
|
|
|
def hash(txt):
|
|
return hashlib.sha512(str.encode(txt)).hexdigest()
|
|
|
|
|
|
lines = []
|
|
with open("output.txt", "r") as infile:
|
|
lines = infile.readlines()
|
|
|
|
hashedlines = []
|
|
for l in lines:
|
|
hashedlines.append(hash(l))
|
|
|
|
with open("outputHashed.txt", "w") as outfile:
|
|
for l in hashedlines:
|
|
outfile.write(l+"\n")
|