Commit graph

13 commits

Author SHA1 Message Date
Ethan Dalool
3fa60a3e3e Fix typo "weblient". 2020-10-25 20:17:24 -07:00
Ethan Dalool
2ad6024ad8 Slightly jank fix to deal with extra data after json dict.
Even though the dict decodes just fine, I'm having some cases where
there is additional data after it. The data looks like random junk
bytes.
2020-10-01 11:21:32 -07:00
Ethan Dalool
5a2f14b312 Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	README.md
#	src/mega/crypto.py
#	src/mega/errors.py
#	src/mega/mega.py
2020-09-21 21:39:25 -07:00
Richard O'Dwyer
781e3a267b various fixes 2020-06-25 21:03:16 +01:00
Ethan Dalool
a394f9829f Add function crypto.interleave_xor_8. 2020-03-23 21:04:34 -07:00
Ethan Dalool
85d4f9d6a3 De-golf some crypto functions.
encrypt_key and decrypt_key were using a feature of sum() where
the second argument is a 'start' value and every futher value
is += onto that. Since it was a tuple, the final result is a tuple.
Replaced it with a tuple comprehension.
get_chunks just needed some variable names but I am not sure the
purpose of the increasing chunk size during iteration. It's probably
a feature of the MEGA webclient.
2020-03-23 20:47:16 -07:00
Ethan Dalool
cafca108e9 Some comment and docstring changes. 2020-03-23 20:46:41 -07:00
Richard O'Dwyer
fa6d1149d4 linting 2020-03-23 19:00:06 +00:00
Ethan Dalool
059f819c9c Use """ instead of ''' for docstrings. 2020-03-23 11:43:51 -07:00
Ethan Dalool
f1047898e8 Deconstruct & comment this private_key MPI parser. 2020-03-09 15:08:24 -07:00
Ethan Dalool
ebca1d4826 Add extended_gcd and modular_inverse functions. 2020-03-09 14:49:12 -07:00
Richard O'Dwyer
e088987c1d lint 2019-10-16 22:26:05 +01:00
Richard O'Dwyer
a15095ab9d modernize packaging 2019-10-16 22:16:46 +01:00
Renamed from mega/crypto.py (Browse further)