Python Electronic signature
📁 Advanced Python Topics, question
Hello everyone. Help me deal with the question. Consider such a case: my program has users and I will send files, the user's program reads this data. I want to check the data for substitution. To do this, send a hash (in the file) of the transmitted file with the data to compare. Now how to protect this file with a hash? 1. Asymmetric encryption - for this I need to hold a private key in the program to decrypt. Then they can decompile the program and find out the private key, then public and replace the data. 2. The electronic signature that encrypts with private and decrypts with public - the option seems suitable, but how to apply it to check the hash in Python is not clear. I managed to sign the file, but for this I used in Windows (MakeCert.exe and Signtool.exe) and how to
No answers yet.
Log in to leave an answer