mirror of
https://github.com/bvanroll/odiseectf.git
synced 2025-08-29 11:52:43 +00:00
fam
This commit is contained in:
18
olivierdeschacht/hasher.py
Normal file
18
olivierdeschacht/hasher.py
Normal 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")
|
Reference in New Issue
Block a user