Compare commits
No commits in common. "2a7e04ef2b7f1960d49abe82c2efd27f439250b7" and "bc95943995efa42535b159d1172f972686936036" have entirely different histories.
2a7e04ef2b
...
bc95943995
@ -1 +0,0 @@
|
|||||||
bgvyzdsv
|
|
@ -1,31 +0,0 @@
|
|||||||
#!/bin/python3
|
|
||||||
|
|
||||||
import sys
|
|
||||||
from pprint import pprint
|
|
||||||
import hashlib
|
|
||||||
|
|
||||||
input_f = sys.argv[1]
|
|
||||||
|
|
||||||
result = 0
|
|
||||||
count = 0
|
|
||||||
found = False
|
|
||||||
with open(input_f) as file:
|
|
||||||
for line in file:
|
|
||||||
tmp = line.rstrip()
|
|
||||||
while found == False:
|
|
||||||
m = hashlib.md5()
|
|
||||||
text = tmp + str(count)
|
|
||||||
#print(text)
|
|
||||||
m.update(text.encode('UTF-8'))
|
|
||||||
nr = m.hexdigest()
|
|
||||||
#print(nr)
|
|
||||||
|
|
||||||
if nr[0:5] == '00000':
|
|
||||||
print(count)
|
|
||||||
print(text)
|
|
||||||
print(nr)
|
|
||||||
found = True
|
|
||||||
else:
|
|
||||||
count += 1
|
|
||||||
#print(nr[ 0 : 5 ])
|
|
||||||
found = False
|
|
@ -1,31 +0,0 @@
|
|||||||
#!/bin/python3
|
|
||||||
|
|
||||||
import sys
|
|
||||||
from pprint import pprint
|
|
||||||
import hashlib
|
|
||||||
|
|
||||||
input_f = sys.argv[1]
|
|
||||||
|
|
||||||
result = 0
|
|
||||||
count = 0
|
|
||||||
found = False
|
|
||||||
with open(input_f) as file:
|
|
||||||
for line in file:
|
|
||||||
tmp = line.rstrip()
|
|
||||||
while found == False:
|
|
||||||
m = hashlib.md5()
|
|
||||||
text = tmp + str(count)
|
|
||||||
#print(text)
|
|
||||||
m.update(text.encode('UTF-8'))
|
|
||||||
nr = m.hexdigest()
|
|
||||||
#print(nr)
|
|
||||||
|
|
||||||
if nr[0:6] == '000000':
|
|
||||||
print(count)
|
|
||||||
print(text)
|
|
||||||
print(nr)
|
|
||||||
found = True
|
|
||||||
else:
|
|
||||||
count += 1
|
|
||||||
#print(nr[ 0 : 5 ])
|
|
||||||
found = False
|
|
@ -1,2 +0,0 @@
|
|||||||
abcdef
|
|
||||||
pqrstuv
|
|
Loading…
Reference in New Issue
Block a user