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

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


   A file object which contains the content to be encrypted

   The key object to be used for encryption

src/h/l/hlsclient-0.5.3/hlsclient/consumer.py   hlsclient(Download)
        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)
        return filename