-
Notifications
You must be signed in to change notification settings - Fork 141
Conversation
…testing (with fixed java attachedsign"
- moved unit tests to package keyczar.tests - moved keyczart to package keyczar.tool - Added binary-only api for en/decrypt, attachedverify - refactored backend to use streams for all en/decrypt - refactored most of the char manipulation to bytes & bytearray - removed cut/paste python source code - removed circular references
in deprecated streaming code
This will prevent padding oracles.
Conflicts: python/keyczar/keys.py python/keyczar/util.py
Conflicts: .travis.yml
Conflicts: python/keyczar/keys.py python/keyczar/util.py
Conflicts: python/keyczar/tool/keyczart.py python/keyczar/util.py
Mkdir move from review
I skimmed across this PR for about an hour today and overall I really like how it reorganizes the code and makes the split between binary data and strings more concrete. From a high level I noticed:
@jbtule I'll probably end up forking this and taking off where you left off since you said you don't have time to work on this. If that's not the case, let me know. Otherwise I'll add you on the PRs and would be happy to have your feedback. |
@devinlundberg fork away! |
@devinlundberg maybe run https://github.com/google/yapf across the whole code base? |
@dgryski looks like a useful tool! I'll play around with it. |
I was playing around with this. Did RsaPublicKey.Encrypt become RsaPublicKey.EncryptIO? Is this intentional? It seems inconvenient having to use BytesIO if I just want to encrypt a string in memory. |
You don't use the encrypt functions of the keys directly, because if you do
you are bypassing one of the biggest security features of keyczar, the key
rotation. So design wise using byte streams on the non public API portion
makes a lot of sense. There is still a string version of encrypt method
on the public facing Encrypter class.
|
Where does this fit in? https://pypi.python.org/pypi/python3-keyczar/0.71rc0 |
@soferio It looks like someone added this pull request to pypi. I just eye-balled it and saw most of my changes in it. |
It seems like there's some real value here - but there are conflicts... Anyone want to finish this off? |
This was the last pull request I had from 2 years ago adding python 3 support. It's only difference from
jbtule/keyczar-python2to3 is it doesn't have the Travis-CI continuous integration, since that is per repository and there are multiple platforms in the google keyczar repository. Do with it what you will, I imagine 2 years will have some adjustments needed.
usekey
implementation to produce full test data Issue 116