This commit is contained in:
2018-11-13 12:58:56 +01:00
parent 5e0faa3f52
commit c5e51424a1
52 changed files with 387457 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
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")