аватар question@mail.ru · 01.01.1970 03:00

Python Electronic signature

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 from the 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 decipher. Then they can diverse the program and find out the private key, then public and replace the data. 2. The electronic signature that encrypts private and deciphers public, the option seems to be suitable, but how to apply it is not clear to check the hash in Python. It tued out to be signed by the file, but for this I used in Window (MakeCert.exe and Signtool.ex) and how to do it by Python or there may be another option for encryption with a closed key. Thank you.

Latest

Similar