Merge lp:~aj00200/anonplus/bug-901058 into lp:anonplus
Proposed by
aj00200
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 201 | ||||
Proposed branch: | lp:~aj00200/anonplus/bug-901058 | ||||
Merge into: | lp:anonplus | ||||
Diff against target: |
59 lines (+13/-28) 1 file modified
src/libs/encryption/otp.py (+13/-28) |
||||
To merge this branch: | bzr merge lp:~aj00200/anonplus/bug-901058 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
al1ce (community) | security | Approve | |
aj00200 | security | Approve | |
Review via email: mp+92401@code.launchpad.net |
Commit message
Fixed bug #901058 by making the OTP encryption use PyCryptos XOR function.
Description of the change
Fixed bug #901058 with the one-time-pad encryption. The encryption now uses PyCrypto's XOR rather than the addition and modulo devision method.
To post a comment you must log in.
Crypto.Cipher.XOR should be used instead of Crypto.Util.strxor. Make sure to manage the pad length.