[Cryptography-dev] Recipe for files?
Stefan Pochmann
stefan.pochmann at gmail.com
Thu Nov 20 16:27:36 CET 2014
I like the Fernet recipe, but I'd like a better recipe for files. One that
doesn't want the entire message at once (bad for big files) and that
doesn't bloat with base64. Should I do it myself with "hazardous materials"
(I might adapt the Fernet code) or will you maybe add such a recipe soon?
Something like this maybe:
f = SomethingLikeFernetButForFiles(key)
for block in f.encrypt(filename, blocksize):
myhandling(block)
Or with a handler parameter:
f = SomethingLikeFernetButForFiles(key)
f.encrypt(filename, blocksize, myhandling)
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cryptography-dev/attachments/20141120/7ce37526/attachment.html>
More information about the Cryptography-dev
mailing list