Skip to content

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