B
B
by_EL2020-03-14 15:19:00
Cryptography
by_EL, 2020-03-14 15:19:00

What does it mean and how is a package or file signed with a private key?

Hello, how is a file signed with a private key, what does it mean and how does it work, Next, how is it checked later? (PS I know what and how Symmetric and Asymmetric encryption public and private keys are and how they work) thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-03-14
@firedragon

A function is called, a private key and possibly a password are passed to it, the output is a stream of bytes, or a file.
Everything is checked against the hash by which everything is signed at the end. Moreover, you can calculate this hash from the public key.
This part is responsible for ensuring that the file has not changed since it was signed.
And you do not need to encrypt the content.
When decrypting, the same thing, only if it does not match, there will be garbage. What you will be informed
about And this is all very simplified.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question