Removed un-needed variables process_file()
This commit is contained in:
parent
50e565e0bb
commit
7ed5bcee43
2 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ This is a work in progress, further functionality coming shortly.
|
|||
|
||||
m.delete('utYjgSTQ')
|
||||
m.delete_url('https://mega.co.nz/#!utYjgSTQ!OM4U3V5v_W4N5edSo0wolg1D5H0fwSrLD3oLnLuS9pc')
|
||||
|
||||
|
||||
files = m.find('myfile.doc')
|
||||
if files:
|
||||
m.delete(files[1]['k'])
|
||||
|
|
4
mega.py
4
mega.py
|
@ -321,8 +321,8 @@ class Mega(object):
|
|||
key = decrypt_key(base64_to_a32(key), self.master_key)
|
||||
if file['t'] == 0:
|
||||
k = file['k'] = (key[0] ^ key[4], key[1] ^ key[5], key[2] ^ key[6], key[3] ^ key[7])
|
||||
iv = file['iv'] = key[4:6] + (0, 0)
|
||||
meta_mac = file['meta_mac'] = key[6:8]
|
||||
file['iv'] = key[4:6] + (0, 0)
|
||||
file['meta_mac'] = key[6:8]
|
||||
else:
|
||||
k = file['k'] = key
|
||||
attributes = base64_url_decode(file['a'])
|
||||
|
|
Loading…
Reference in a new issue