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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def decrypt(input):
    characters = []
    for i in xrange(0, len(input), 2):
        ascii = int(input[i:i + 2], 16)
        characters.append(chr(ascii))

    output = ''.join(characters).strip()
    if len(output) == 0:
        return None

    return output.decode('iso-8859-1')
        


src/f/l/flarmnet-0.1/flarmnet/record.py   flarmnet(Download)
from flarmnet.encryption import decrypt
 
class Record:
    def __init__(self, line):
        self._line = line.strip()
        self._cache = {}
 
    def get_or_cache(self, attribute, start, end):
        if attribute not in self._cache:
            self._cache[attribute] = decrypt(self._line[start:end])