pa
def decrypt():
print "Enter hash for decryption: \n"
rec = raw_input()
print "Enter path of wordlist"
list = raw_input()
wordl=open(list,"r")
wordk = wordl.readlines()
for w in wordk:
w = hashlib.sha256(w).hexdigest()
if rec.lower() != w:
print "Not this " + w
elif rec.lower() ==w:
print "Found ! " + w
break
else:
print "Nothing found ! "
4.3
10
def encrypt():
print "Enter string for encryption: \n"
rec = raw_input()
enkr =hashlib.sha256(rec).hexdigest()
print enkr
Thank you!
10
0
Are there any code examples left?
New code examples in category Other