In my opinion either way this is a good change. Possibly we still want an iter API as well but I don't think an iter API would supercede this one. That is unless we want to pull a python 3 and make the iterate API the default and expect people to use bytes(bc.encrypt(...)) if they want to convert it, which now that I think about it might not be the most terrible thing. 

> On Oct 25, 2013, at 6:06 PM, Alex Gaynor <notifications@github.com> wrote:
> 
> In cryptography/primitives/block/base.py:
> 
> > @@ -35,6 +35,16 @@ def decryptor(self):
> >          return _CipherContext(
> >              self._backend.ciphers.create_decrypt_ctx(self.cipher, self.mode))
> >  
> > +    def encrypt(self, data):
> > +        encryptor = self.encryptor()
> > +        result = encryptor.update(data)
> > +        return result + encryptor.finalize()
> At one point we'd discussed also supporting iterators over bytes. I'm no longer 100% sure if that's useful or API bloat. What do you think @dstufft ?
> 
> —
> Reply to this email directly or view it on GitHub.