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

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)
A helper class which can be used for decrypting data in chunks

Parameters:

 `dataf`
   A file object which contains the content to be decrypted

 `key`
   The key object to be used for decryption

src/h/l/hlsclient-0.5.3/hlsclient/consumer.py   hlsclient(Download)
        raw = urllib2.urlopen(url=uri, timeout=DOWNLOAD_TIMEOUT)
        if new_key is not False:
            plain = crypto.Decrypt(raw, current_key) if current_key else raw
            raw = crypto.Encrypt(plain, new_key) if new_key else plain
        atomic_write(raw, filename)