M
M
maniacus262019-02-26 17:32:34
Python
maniacus26, 2019-02-26 17:32:34

How to create an electronic signature file (.sig) using Python?

Good afternoon!
It is very necessary to implement the file signing mechanism (i.e., creating a detached electronic signature .sig file) using Python 3.
In search of solutions, I came across materials for older versions of Python that are not supported now.
Valid certificates (cer, pem) are available.
Share your experience.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2019-02-26
@Zarom

Do you know what ECP is? This is the hash sum of the file encrypted with the private key.
The hashing and encryption functions are implemented in a fairly modern cryptography library (
a fork of pycrypto). Examples can be found in the documentation or google.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question