pa code example

Example 1: 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 ! "

Example 2: pa

def encrypt():
    print "Enter string for encryption: \n"
    rec = raw_input()
    enkr =hashlib.sha256(rec).hexdigest()
    print enkr

Tags:

Misc Example