There is a client / server program, files on the client side are transferred to the server if changes have been made. How to properly encrypt files so that after they are transferred to the server, they are encrypted on it (they remain unencrypted on the client side, and the server does not know the key to be decrypted)? those. if someone hacks the server, they cannot use these files. I can not find python python receivers, so if there are any examples (especially using OpenPGP) and how to do it at all, it would be great.
Specifically, the question is that to send a file from the client to the server and that they are uploaded to the server encrypted and downloaded from the server to the client-decapitated, if you use AES, how? what modification? And other recommendations in the comments-how to use them?
os.systemthroughos.systemoros.popenand send its output to the server in any convenient way - andreymal