Demo entry 6519901



Submitted by anonymous on May 31, 2017 at 12:50
Language: Python. Code size: 522 Bytes.

def handle(act):
    if act == 'upload':
        (res,skey) = challenge()
        if res:
            crylen = int(cliSockfd.recv(4096))
            print crylen

            crypto = ''
            while len(crypto)<crylen:
                data = cliSockfd.recv(4096)
                print "%d %d" % (len(crypto), len(data))
                crypto += data
            print crypto[-1]

            skeyi = prpcrypt(skey)
            file_context = skeyi.decrypt(crypto)
            print len(file_context)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).