Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/j/u/jug-HEAD/examples/decrypt/jugfile.py   jug(Download)
from jug import TaskGenerator
import numpy as np
from itertools import product, chain
from crypt import decode, letters, isgood, preprocess
 
def decrypt(prefix):
    res = []
    for suffix in product(letters, repeat=5-len(prefix)):
        passwd = np.concatenate([prefix, suffix])
        text = decode(ciphertext, passwd)

src/j/u/jug-HEAD/examples/decrypt/brute.py   jug(Download)
import itertools
from crypt import decode, letters, isgood, preprocess
 
ciphertext = file('secret.msg').read()
ciphertext = preprocess(ciphertext)
 
for p in itertools.product(letters, repeat=5):
    text = decode(ciphertext, p)

src/e/s/ESFS-HEAD/common/structure.py   ESFS(Download)
 
    enc_comp_data = stepic.decode(enc_im)
    self.data = list(crypt.decode(self.key, enc_comp_data))
 
    self.size = len(self.data)