Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment big-endian format, the unpacking operator, encryptor creation and encryption call #13

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

madchucky
Copy link

@madchucky madchucky commented Dec 6, 2017

  1. I had to refresh the notion of endianness and found following video helpful https://www.youtube.com/watch?v=MEyV7moej-k
    I guess the idea here is to have the code independent of the platform it is run on, right @juanriaza ?

  2. I struggled to understand the unpacking operator '*' until I found following video https://www.youtube.com/watch?v=YWY4BZi_o28. Cool python feature.

  3. Is the package pycrypto the right one for AES import? Few comments added from there. https://pypi.python.org/pypi/pycrypto "PyCrypto is written and tested using Python version 2.1 through 3.3. Python 1.5.2 is not supported."
    Good simple use of pycrypto is demonstrated here https://www.youtube.com/watch?v=fqjdXMu4ZAQ

I had to struggle to understand the unpacking operator '*' until I found following video https://www.youtube.com/watch?v=YWY4BZi_o28. Cool python feature.
@madchucky madchucky changed the title Comment the unpacking operator Comment the choice of big-endian format and the unpacking operator Dec 6, 2017
@madchucky madchucky changed the title Comment the choice of big-endian format and the unpacking operator Comment big-endian format, the unpacking operator, encryptor creation and encryption call Dec 6, 2017
CBC mode is chosen because this is what mega is using.
Adding a coming explaining why 'b' needs to be padded up to a length multiple of 4. 

If the need for padding repeats, we could define a function for it maybe.
Copy link
Author

@madchucky madchucky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need for padding seems to be repeating, for instance in function "enc_attr" in crypto.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant