From d55ed342565f851a8701e3758e94acddeba56939 Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Mon, 2 Mar 2020 21:59:38 +0300 Subject: [PATCH] # Created + tested SafeSource!!! You can Create and run crypted .py code --- Sources/pyOpenRPA/Tools/SafeSource/Crypter.py | 15 +++++------ .../pyOpenRPA/Tools/SafeSource/DistrCreate.py | 12 +++++---- .../pyOpenRPA/Tools/SafeSource/DistrRun.py | 26 +++++++++++++++++-- v1.0.41 => v1.0.42 | 0 4 files changed, 37 insertions(+), 16 deletions(-) rename v1.0.41 => v1.0.42 (100%) diff --git a/Sources/pyOpenRPA/Tools/SafeSource/Crypter.py b/Sources/pyOpenRPA/Tools/SafeSource/Crypter.py index 6a44c717..3921c79b 100644 --- a/Sources/pyOpenRPA/Tools/SafeSource/Crypter.py +++ b/Sources/pyOpenRPA/Tools/SafeSource/Crypter.py @@ -66,17 +66,14 @@ def decrypt_file_bytes(key, in_filename, chunksize=24*1024): заданным ключом. """ lResult = b'' - if not out_filename: - out_filename = os.path.splitext(in_filename)[0] with open(in_filename, 'rb') as infile: origsize = struct.unpack('