Kiali

Q) How does digital signature work?

Let’s try to explain it with an example use case:

Sender: has a text “send 50k to a supplier” -> using a hashing algorithm, sha-256, create unique hash of it -> using private key, encrypt (sign) this hash, and create the digital signature -> send both the text and the digital signature

Receiver: receive “send 50k to a supplier” and a digital signature -> decrypt (verify) digital signature with public key of sender -> now receiver has a hash and and a text “send 50k to a supplier” -> using the same sha-256 hashing algorithm, create unique has of the text -> look if this hash and the hash received from sender match -> if yes, then the was not tampered