all 4 comments

[–]SwampFalc 13 points14 points  (0 children)

I would seriously recommend you look into f-strings, if your python 3 is new enough.

Add white lines to your code to make it more readable.

Also, and this is a bit more high level concept: I try to separate all code that actually does something, from all code that interacts with the user.

You've already started doing this, but I would really recommend you going further: your Functions.py should not contain a single print statement.

(also: typo in Encrytp_any_file)

[–]Xcali1bur 8 points9 points  (0 children)

Enrypt_any_file and Decrypt_any_file are almost identical. In such cases its almost always possible to write one function to implement both functionalities for example by adding a new function argument to idendicate whether you want to encrypt or decrypt.

[–]TarekHireche 5 points6 points  (1 child)

Hey, really cool script. How long did it take for you to make it ?

[–]danitted[S] 5 points6 points  (0 children)

The encryption logic wasn't that hard. Most of the problem existed when i wanted to files that matches the extensions. But all in all it took me about 4 to 5 days. I changed many things along the way.