У
Удалённый пользователь 166742
import os
import sys
def decrypt(file):
import pyAesCrypt
print('-' * 80)
password = "' ' '+str (password) +' ' '"
buffer size = 512 * 1024
pyAesCrypt.decryptFile(str(file), str(os.path.splitext(file) [0]), password,buffer size)
print("[Decrypt] '" + str(os.path.splitext(file) [0]) + "'")
os.remove(file)
def walk(dir):
for name in os.listdir(dir):
path = os.path.join(dir, name)
if os.path.isfile(path):
try:
decrypt(path)
except Error:
pass
else:
walk(path)
walk("'' '+str(direct)+'' '")
print('-' * 80)
os.remove(str(sys.argv[O]))
import sys
def decrypt(file):
import pyAesCrypt
print('-' * 80)
password = "' ' '+str (password) +' ' '"
buffer size = 512 * 1024
pyAesCrypt.decryptFile(str(file), str(os.path.splitext(file) [0]), password,buffer size)
print("[Decrypt] '" + str(os.path.splitext(file) [0]) + "'")
os.remove(file)
def walk(dir):
for name in os.listdir(dir):
path = os.path.join(dir, name)
if os.path.isfile(path):
try:
decrypt(path)
except Error:
pass
else:
walk(path)
walk("'' '+str(direct)+'' '")
print('-' * 80)
os.remove(str(sys.argv[O]))